Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0010286Dwarf FortressCreaturespublic2017-09-06 10:072017-09-06 10:07
bearskie 
 
lowminoralways
newopen 
0.43.05 
 
0010286: CTAG defaults to true if !ARG not passed
If a creature variation does not provide the required arguments, CTAGs relating to that argument are assumed to be true.

This seems rather counter-intuitive. Ideally it should be the other way around - defaulting to false if no arguments are provided, and NOT applying the CTAG.
[CREATURE_VARIATION:TEST]
    [CV_ADD_CTAG:1:YES:<stuff A>]
    [CV_ADD_CTAG:2:NO:<stuff B>]

[APPLY_CREATURE_VARIATION:TEST:HAHA]

Obviously, !ARG1 is not YES, hence CTAG 1 is false and <stuff A> doesn't happen.
However, despite !ARG2 not having been declared, CTAG 2 defaults to true and <stuff B> happens.
No tags attached.
Issue History
2017-09-06 10:07bearskieNew Issue

There are no notes attached to this issue.