Refactor InducedOvulator.ShouldBeInEstrus

This commit is contained in:
lutepickle 2023-09-05 11:56:07 -07:00
parent 76eec3852a
commit 9cd87dda27

View file

@ -106,19 +106,8 @@ namespace RJW_Menstruation
protected override bool ShouldBeInEstrus()
{
if (!loaded)
Initialize();
switch (curStage)
{
case Stage.Follicular:
return curStageTicks > currentIntervalTicks - Props.estrusDaysBeforeOvulation * GenDate.TicksPerDay;
case Stage.Ovulatory:
return true;
case Stage.Luteal:
return hadOvulatoryStage && curStageTicks < EggLifespanTicks;
default:
return false;
}
if (curStage == Stage.Luteal && !hadOvulatoryStage) return false;
else return base.ShouldBeInEstrus();
}
}
}