From 0a24b5556f10c9f1263a4b0a89e3185be5e6bc6b Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Sat, 28 Oct 2023 17:19:09 -0700 Subject: [PATCH] Refactor InfertileAction --- .../HediffComps/HediffComp_Menstruation.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 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 267a42c..7408214 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 @@ -1793,14 +1793,11 @@ namespace RJW_Menstruation protected virtual void InfertileAction() { if (ShouldBeInfertile()) - { StayCurrentStageConst(Stage.Infertile); - } + else if (IsBreedingSeason()) + GoNextStage(Stage.Follicular); else - { - bool breedingSeason = IsBreedingSeason(); - GoNextStage(breedingSeason ? Stage.Follicular : Stage.Anestrus, breedingSeason ? (int?)null : 0); - } + GoNextStage(Stage.Anestrus); } protected virtual void AnestrusAction()