Set newly initialized (e.g. newborn) pawns' stage to Young if they have 0 fertility

This commit is contained in:
lutepickle 2022-03-19 16:29:48 -07:00
parent 3ae66bd4a6
commit 38b16c75c3
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -863,7 +863,8 @@ namespace RJW_Menstruation
if (follicularIntervalhours < 0) if (follicularIntervalhours < 0)
{ {
follicularIntervalhours = PeriodRandomizer(Props.folicularIntervalDays * 24, Props.deviationFactor); follicularIntervalhours = PeriodRandomizer(Props.folicularIntervalDays * 24, Props.deviationFactor);
curStage = RandomStage(); if (parent.pawn.health.capacities.GetLevel(xxx.reproduction) <= 0) curStage = Stage.Young;
else curStage = RandomStage();
} }
if (lutealIntervalhours < 0) lutealIntervalhours = PeriodRandomizer(Props.lutealIntervalDays * 24, Props.deviationFactor); if (lutealIntervalhours < 0) lutealIntervalhours = PeriodRandomizer(Props.lutealIntervalDays * 24, Props.deviationFactor);