Pregnancy Approaches - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

The Pregnancy Approaches system allows you to add new entries to this list:

How do I use this code?

You use the new Def, PregnancyApproachDef:

 public string cancelLabel;
 public string iconPath;
 public CachedTexture icon;
 public float? pregnancyChanceForPartners;
 public float? pregnancyChanceFactorBase;
 public GeneDef requiredGene;
 public bool requireDifferentGender = true;
 public float lovinDurationMultiplier = 1f;
 public bool requireFertility;

For example, here is one of the Defs in Highmates:

<VEF.Pawns.PregnancyApproachDef>
	<defName>VRE_LovinForPleasure</defName>
	<label>Lovin’ for pleasure (pregnancy chance x0%)</label>
	<cancelLabel>Normal lovin'</cancelLabel>
	<iconPath>UI/Icons/Pregnancyapproaches/RhythmMode_LovinForPleasure</iconPath>
	<pregnancyChanceForPartners>0</pregnancyChanceForPartners>
	<requiredGene>VRE_Libido_VeryHigh</requiredGene>
	<requireDifferentGender>false</requireDifferentGender>
	<lovinDurationMultiplier>1.25</lovinDurationMultiplier>
</VEF.Pawns.PregnancyApproachDef>
⚠️ **GitHub.com Fallback** ⚠️