DRG on Kill - KonradHeinser/EBSGFramework GitHub Wiki
A DRG equivalent to Hemogen on Kill that gives pawns a resource offset whenever they kill something while conditions are met. This allows you to link multiple DRGs with the same hediff, and each one can have its own conditions for when the comp activates for it. Each DRG to link needs its own li within the resourceOffsets tag:
<comps>
<li Class="EBSGFramework.HediffCompProperties_DRGOnKill">
<resourceOffsets>
<li>
</li>
</resourceOffsets>
</li>
</comps>
Each li has these tags within it:
-
mainResourceGene : The resource gene to offset
-
amount : The amount to offset
-
usesGainStat : Default (False) : If true and the resource gene has a gainStat set, the amount is multiplied by its value
-
minSeverity : Default (0) : Minimum severity the parent needs to activate this effect
-
maxSeverity : Default (99999) : Minimum severity the parent can have to activate this effect
-
maxDistance : Default (4.9) : Maximum distance to be able to use this effect. Set it to -1 to be able to gain hemogen from any distance
-
forbiddenTargetGenes : List of genes that will stop the effect from activating when the target has any one of them.
-
allowHumanoids : Default (True) : Killing humanoids triggers this hediff
-
allowDryads : Default (True) : Killing dryads triggers this hediff. This is separate from animals
-
allowInsects : Default (True) : Killing insects triggers this hediff. This is separate from animals
-
allowAnimals : Default (True) : Killing animals triggers this hediff
-
allowEntities : Default (True) : Killing entities triggers this hediff