Hediff on Damage - KonradHeinser/EBSGFramework GitHub Wiki
This comp causes the thing it's attached onto to create a hediff when they take damage. The basic comp looks like this:
<comps>
<li Class="EBSGFramework.CompProperties_HediffOnDamage>
</li>
</comps>
Within the class you have these options:
-
givenHediff : The HediffDef to apply
-
severityPerDamage : If you add a value to this, the severity (or increase in severity) will equal the damage amount times this
-
initialSeverity : Default (1) : The initial severity of the hediff that is added. If severityPerDamage is used, this will be ignored
-
severityIncrease : Default (1) : The severity to add to an existing hediff. If severityPerDamage is used, this will be ignored
-
triggeredByRangedDamage : Default (True) : If false, then any damage that Rimworld marks as Ranged will be ignored
-
triggeredByExplosions : Default (True) : If false, then any damage that Rimworld marks as Explosive will be ignored
-
triggeredByMeleeDamage : Default (True) : If false, then any damage that Rimworld marks as Non-Ranged and Non-Explosive will be ignored
-
validDamageDefs : A list of DamageDefs that can trigger the comp. If filled out, all other DamageDefs will be ignored
-
ignoredDamageDefs : A list of DamageDefs that will never trigger the comp. If validDamageDefs is used, this is not needed