Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011663Dwarf FortressCreaturespublic2020-12-23 15:042022-07-26 01:38
Nekkowe 
 
normalminoralways
newopen 
Multiple (Windows, Linux)
0.47.04 
 
0011663: Internal body parts with certain tags can still wear clothing & armor, without being otherwise accessible
The [INTERNAL] token does not override the ability to wear armor/clothing on a body part that other tokens give it.

A creature can equip and remove clothing to [INTERNAL] body parts, and will automatically be assigned gear on those body parts as normal, if those internal parts also happen to have [HEAD], [UPPERBODY] and/or [LOWERBODY] tokens.

For example, an [INTERNAL] body part that also possesses the [HEAD] tag - for example, of a creature intended to be able to wear headgear, but not intended to need its head to survive - will still be assigned headgear in adventurer mode. The creature can freely wear/remove gear from it without the part needing to be exposed.
Attach the following body part definition to any default humanoid, and start as one in adventure mode. The equipment menu should automatically populate with duplicate clothing items, despite the part being [INTERNAL].

[BODY:AUTOMATON_CORE]
    [BP:AUTOMATON_CORE:automaton core:STP][CONTYPE:UPPERBODY]
        [INTERNAL][SMALL][UNDER_PRESSURE]
        [THOUGHT] -- the central core of the body
        [HEAD][UPPERBODY][LOWERBODY]
        [DEFAULT_RELSIZE:600]
The reason this would come up to begin with lies in the dual purpose of the [HEAD], [UPPERBODY] and [LOWERBODY] tokens.

The first function they serve is determining wearables for the body part.
But they also control a creature's death - if a creature had one or more parts with the [HEAD] token, and loses the last of them, it dies, regardless of remaining [THOUGHT] parts.

This makes it difficult to create a creature that can wear headgear, trousers etc, but whose survival isn't reliant on those body parts.

Adding redundant [HEAD], [UPPERBODY] and [LOWERBODY] tokens to the actual center of [THOUGHT] makes the other parts expendable, but even if that important part is marked as [INTERNAL], the creature can still equip clothing there - and comes into being wearing duplicate hats, trousers etc. wherever clothing is assigned automatically.

There does not seem to be any other workaround for the dual nature of these tokens.
0.47.05, body part, body parts, creature, Equipment, modding, raw, raw file, raw files, token, tokens
Issue History
2020-12-23 15:04NekkoweNew Issue
2022-07-26 01:26NekkoweIssue Monitored: Nekkowe
2022-07-26 01:26NekkoweIssue End Monitor: Nekkowe
2022-07-26 01:36NekkoweTag Attached: 0.47.05
2022-07-26 01:37NekkoweTag Attached: body part
2022-07-26 01:37NekkoweTag Attached: body parts
2022-07-26 01:37NekkoweTag Attached: creature
2022-07-26 01:37NekkoweTag Attached: Equipment
2022-07-26 01:37NekkoweTag Attached: raw
2022-07-26 01:37NekkoweTag Attached: raw file
2022-07-26 01:37NekkoweTag Attached: raw files
2022-07-26 01:37NekkoweTag Attached: token
2022-07-26 01:37NekkoweTag Attached: tokens
2022-07-26 01:38NekkoweTag Attached: modding

There are no notes attached to this issue.