[0.19.1987] Grammar Resolution log goes crazy in Combat_WoundIncludes.rulePack

Started by b606, August 10, 2018, 02:34:20 AM

Previous topic - Next topic

b606

In the tag <Combat_WoundIncludes.rulePack.rulesStrings> in the file DefInjected/RulePackDef/RulePacks_Combat.xml, the rulepack lines (suggested by the translation tool for language mods)
<li>destroyed_targets->[RECIPIENT_part_destroyed0_label], [RECIPIENT_part_destroyed1_label], [RECIPIENT_part_destroyed2_label], and [RECIPIENT_part_destroyed3_label]</li>
or
    <li>damaged_targets->[RECIPIENT_part_damaged0_label], [RECIPIENT_part_damaged1_label], [RECIPIENT_part_damaged2_label], and [RECIPIENT_part_damaged3_label]</li>

are triggered even when the parameters recipient_part_{damaged,destroyed}_count==0 (no parts damaged or destroyed).

This generates a bunch of errors in the logfile when testing for example in debug mode with "log Grammar Resolution" activated, and generating texts with "Flavorful Combat Test".

Rules with errors seem to be ignored but isn't there a performance issue here?

Best regards.

File: every where appear rules with [destroyed_targets] or [damaged_targets], without test on recipient_part_{damaged,destroyed}_count>=1, such as
DefInjected/RulePackDef/RulePacks_Combat.xml
DefInjected/RulePackDef/RulePacks_DamageEvent.xml

b606


Make the French RimWorld Translation at maximum quality.
French Optimisation Mod