mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Refactor InducedOvulator.ShouldBeInEstrus
This commit is contained in:
parent
76eec3852a
commit
9cd87dda27
1 changed files with 2 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue