Implant at the right time for vaginas with odd luteal intervals

This commit is contained in:
lutepickle 2022-07-12 14:23:10 -07:00
parent ea7b8e03ee
commit 6143fb41fb
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -64,8 +64,8 @@ namespace RJW_Menstruation
//const int ovarypowerthreshold = 72;
const int tickInterval = GenDate.TicksPerHour;
const int maxImplantDelayDays = 30;
const int minImplantAgeHours = 72;
const int maxImplantDelayHours = 30 * 24;
const int minImplantAgeHours = 3 * 24;
public CompProperties_Menstruation Props;
public Stage curStage = Stage.Follicular;
@ -1109,7 +1109,7 @@ namespace RJW_Menstruation
{
if (!egg.fertilized ||
egg.fertstage < minImplantAgeHours ||
egg.position < Math.Min(Props.lutealIntervalDays / 2, maxImplantDelayDays) * 24)
egg.position < Math.Min(Props.lutealIntervalDays * 24 / 2, maxImplantDelayHours))
continue;
else if (egg.fertilizer == null)
{