From 2bb0871919c010363084865b6fc45764f61ac3a1 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Mon, 6 Mar 2023 17:20:49 -0800 Subject: [PATCH] Properly set the conditions to not go/stay in the infertile stage for InfertileAction and RecoverAction --- .../RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 cf2fbaa..cfdcaef 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 @@ -1713,7 +1713,7 @@ namespace RJW_Menstruation { if (curStageHrs >= currentIntervalHours) { - if (Pawn.health.capacities.GetLevel(xxx.reproduction) == 0 || EggHealth <= 0 || Pawn.SterileGenes()) + if (ImplantChance <= 0.0f || EggHealth <= 0) { GoNextStage(Stage.Infertile); } @@ -1735,7 +1735,7 @@ namespace RJW_Menstruation protected virtual void InfertileAction() { - if (Pawn.health.capacities.GetLevel(xxx.reproduction) <= 0 || EggHealth <= 0 || Pawn.SterileGenes()) + if (ImplantChance <= 0 || EggHealth <= 0) { StayCurrentStageConst(Stage.Infertile); }