Hediff Giver Extension - SmArtKar/AthenaFramework GitHub Wiki

By adding HediffGiverExtension on your pawn's thingDef you can make them spawn with certain hediffs on certain bodyparts(or whole body if you don't assign a bodypart)

    public class HediffGiverExtension : DefModExtension
    {
        public List<HediffBodypartPair> bodypartPairs;
    }

    public class HediffBodypartPair
    {
        public BodyPartDef bodyPartDef;
        public HediffDef hediffDef;
    }

Here's an example of how this comp can be used

  <modExtensions>
    <li Class="AthenaFramework.HediffGiverExtension">
      <bodypartPairs>
        <li>
          <bodyPartDef>YourBodypart</bodyPartDef>
          <hediffDef>YourBodypartHediff</hediffDef>
        </li>

        <li>
          <hediffDef>YourBodypartlessHediff</hediffDef>
        </li>
      </bodypartPairs>
    </li>
  </modExtensions>
⚠️ **GitHub.com Fallback** ⚠️