From f19494fd5a5f01538b40ab8ab4caa1f9cb29bb6b Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Tue, 9 Aug 2022 07:02:55 -0700 Subject: [PATCH] Shift the fertility check above the switch in compPostTick --- .../RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index 35c609b..4c5a060 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -543,6 +543,7 @@ namespace RJW_Menstruation } CumOut(); + if (pregnancy == null && parent.pawn.health.capacities.GetLevel(xxx.reproduction) <= 0) curStage = Stage.Young; switch (curStage) { case Stage.Follicular: @@ -583,8 +584,7 @@ namespace RJW_Menstruation default: GoNextStage(Stage.Follicular); break; - } - if (pregnancy == null && parent.pawn.health.capacities.GetLevel(xxx.reproduction) <= 0) curStage = Stage.Young; + } } catch (Exception ex) {