Fertility By Age - KonradHeinser/EBSGFramework GitHub Wiki
This extension can be used to change the effects age has on fertility, and due to its nature, is only really explainable with examples since most of the work is deciding on the curve which contains points in the format of (age in years, fertility multiplier). There are two options to choose from. First is to edit the normal curves in the gene's mod extension:
<modExtensions>
<li Class="EBSGFramework.FertilityByGenderAgeExtension">
<maleFertilityAgeFactor>
<points>
<li>(21, 0)</li>
<li>(27, 1)</li>
<li>(75, 1)</li>
<li>(135, 0.05)</li>
</points>
</maleFertilityAgeFactor>
<femaleFertilityAgeFactor>
<points>
<li>(21, 0)</li>
<li>(30, 1)</li>
<li>(42, 1)</li>
<li>(53, 0.5)</li>
<li>(60, 0.1)</li>
<li>(68, 0.05)</li>
<li>(75, 0)</li>
</points>
</femaleFertilityAgeFactor>
</li>
</modExtensions>
And the second option is to edit it for both genders:
<modExtensions>
<li Class="EBSGFramework.FertilityByGenderAgeExtension">
<fertilityAgeFactor>
<points>
<li>(14, 0)</li>
<li>(20, 1)</li>
<li>(50, 1)</li>
</points>
</fertilityAgeFactor>
</li>
</modExtensions>
These two methods are mutually exclusive, and the first match the code finds will be the new fertility, regardless of how many genes the pawn has that use this extension. Sometimes you may want to have genes that override the fertility without making the genes mutually exclusive. This can be accomplished by using overriding genes like so:
<modExtensions>
<li Class="EBSGFramework.FertilityByGenderAgeExtension" MayRequire="EBSG.Framework">
<overridingGenes>
<li>SuperHealing</li>
</overridingGenes>
<maleFertilityAgeFactor>
<points>
<li>(14, 0)</li>
<li>(18, 1)</li>
<li>(200, 1)</li>
<li>(360, 0.05)</li>
</points>
</maleFertilityAgeFactor>
<femaleFertilityAgeFactor>
<points>
<li>(14, 0)</li>
<li>(20, 1)</li>
<li>(112, 1)</li>
<li>(140, 0.5)</li>
<li>(160, 0.1)</li>
<li>(180, 0.05)</li>
</points>
</femaleFertilityAgeFactor>
</li>
</modExtensions>
To avoid potential issues, this only goes with the first gene the pawn has, and that gene's overriding genes will be ignored, so don't try to give them grandchildren. If you want to have fertility affected by age without actually changing the normal curve, you can use Additional Fertility by Age. If you want to make the gene incompatible with all other fertility by age genes add the following exclusion tag:
<exclusionTags>
<li>EBSG_FertilityByAge</li>
</exclusionTags>