Skip to content

Hediffs While Drafted

Alite edited this page May 22, 2026 · 3 revisions

This hediff comp applies hediffs based on whether or not the pawn is drafted. It is important to note that this does not cover every situation where the pawn is in combat (i.e. auto-attacking, hunting, or social fighting), but only when the pawn is actually considered drafted:

        <comps>
            <li Class="EBSGFramework.HediffCompProperties_HediffsWhileDrafted">
                
            </li>
        </comps>

This comp has two options, both of which are special lists of items that have the same stuff in each option. For those familiar with the Hediff Adder, the overall structure is almost exactly the same, with the removal of onlyIfNew, chance, and removeOnRemove being the only difference. One or both of the lists can be used:

  • draftedHediffs : The special list of items which dictate how to handle adding hediffs when the pawn is drafted
  • undraftedHediffs : The special list of items which dictate how to handle adding hediffs when the pawn is not drafted

Any time a list is not active (i.e. draftedHediffs when the pawn isn't drafted), all hediffs on that list are removed. If the hediff this comp is attached to is removed, hediffs from both lists are removed. Each item in those lists has the following options:

  • hediff : The HediffDef to add. This is required
  • bodyParts : The list of BodyPartDefs to add the hediff to. If left blank, then it will add to the full body
  • severity : Default (0.5) : The severity to reset/apply to the hediff

Other


Special Nodes

Clone this wiki locally