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()
|
protected override bool ShouldBeInEstrus()
|
||||||
{
|
{
|
||||||
if (!loaded)
|
if (curStage == Stage.Luteal && !hadOvulatoryStage) return false;
|
||||||
Initialize();
|
else return base.ShouldBeInEstrus();
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue