From 742381dd5438b3545b1c8fa0f81869dd6158ec5e Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Fri, 4 Nov 2022 10:51:01 -0700 Subject: [PATCH] Don't run the cycle for pawns that are genetically sterile --- .../RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs | 2 +- changelogs.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index b3b1e84..d2b9c86 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -639,7 +639,7 @@ namespace RJW_Menstruation CumOut(); - if (pregnancy == null && (Pawn.health.capacities.GetLevel(xxx.reproduction) <= 0) || EggHealth <= 0) curStage = Stage.Infertile; + if (pregnancy == null && (Pawn.health.capacities.GetLevel(xxx.reproduction) <= 0 || EggHealth <= 0 || Pawn.SterileGenes())) curStage = Stage.Infertile; switch (curStage) { case Stage.Follicular: diff --git a/changelogs.txt b/changelogs.txt index 0b61fda..bd3a237 100644 --- a/changelogs.txt +++ b/changelogs.txt @@ -2,6 +2,7 @@ Version 1.0.8.1 - Added the option for humans to start Biotech pregnancies if the DLC is enabled. If set, non-humans will use the old multiple pregnancy instead. - Babies conceived through the multiple pregnancy option will now properly inherit xenotypes. - Properly track biotech pregnancy through labor. + - Pawns that are genetically sterile will no longer produce fertile cum, nor have a menstrual cycle. - A biotech pregnancy will pause before going into labor if another womb already is in labor. Version 1.0.8.0