Gender by Age Hediff - KonradHeinser/EBSGFramework GitHub Wiki
This is the Hediff version of Gender by Age that changes the pawn's gender based on how old they are. The base comp looks like this:
<comps>
<li Class="EBSGFramework.HediffCompProperties_GenderByAge">
</li>
</comps>
These are the options available:
- genderByAge : A special list of items that determines the gender to give. This uses the gender for the node name, and the range of ages it's valid for as the value. If only a single value is give (i.e. 60), then any age at or above that value qualifies. If no value is given (i.e. ), then that gender is always used if no item above it on the list qualifies
- revertPostRemove : Default (False) : Causes the pawn's gender to revert to what it was originally, assuming it was changed, as soon as the hediff is removed
- saveBeard : Default (False) : If the pawn had a beard when the hediff was first added and their gender is changed by this hediff, this will make the hediff attempt to make sure that beard returns if something removed it (i.e. turning into a female). This will also revert beard changes the player may have made at a styling bench
This simple example just makes the pawn Male if they are not already:
<HediffDef>
<defName>ItsAlwaysNuts</defName>
<label>it's always nuts</label>
<description>.</description>
<everCurableByItem>false</everCurableByItem>
<initialSeverity>0.001</initialSeverity>
<stages />
<hediffClass>HediffWithComps</hediffClass>
<scenarioCanAdd>false</scenarioCanAdd>
<comps>
<li Class="EBSGFramework.HediffCompProperties_GenderByAge">
<genderByAge>
<Male />
</genderByAge>
<revertPostRemove>True</revertPostRemove>
</li>
</comps>
</HediffDef>