Be sure the periodic can go into anestrus if it initializes into ovulatory

This commit is contained in:
lutepickle 2024-02-11 10:46:47 -08:00
parent 82dea0f425
commit 50310988ca
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace RJW_Menstruation
if (ticksToNextCycle < -50000)
ticksToNextCycle = Rand.Range(0, averageCycleIntervalTicks);
// Make the cutoff halfway into cycle, just to be sure there isn't a double-cycle the first time
if ((curStage == Stage.Follicular || curStage == Stage.Luteal || curStage == Stage.Bleeding)
if ((curStage == Stage.Follicular || curStage == Stage.Ovulatory || curStage == Stage.Luteal || curStage == Stage.Bleeding)
&& (averageCycleIntervalTicks - ticksToNextCycle) / 2 >= GenDate.TicksPerDay * (Props.follicularIntervalDays + Props.lutealIntervalDays) / cycleSpeed)
GoNextStage(Stage.Anestrus);
}