PawnKindDef Extension - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

PawnKindDefExtension has a bunch of fields related to faction colors and shields:

public List<BodyPartGroupDef> factionColourApparelPartList;
public List<ApparelLayerDef> factionColourApparelLayerList;
public List<string> shieldTags;
public FloatRange shieldMoney;

How to use this code?

Here is an example of the Praetorian PawnKindDef in VFE - Classical:

<modExtensions Inherit="False">
      <li Class="VEF.Pawns.PawnKindDefExtension">
            <factionColourApparelPartList>
                  <li>Torso</li>
                  <li>Torso</li>
                  <li>Torso</li>
                  <li>Torso</li>
                  <li>Legs</li>
            </factionColourApparelPartList>
            <factionColourApparelLayerList>
                  <li>OnSkin</li>
                  <li>Middle</li>
                  <li>Shell</li>
                  <li>VFEC_OuterShell</li>
                  <li>OnSkin</li>
            </factionColourApparelLayerList>
            <shieldMoney>
                  <min>100</min>
                  <max>1000</max>
            </shieldMoney>
            <shieldTags>
                  <li>Classical</li>
            </shieldTags>
      </li>
</modExtensions>
⚠️ **GitHub.com Fallback** ⚠️