Properly set the conditions to not go/stay in the infertile stage for InfertileAction and RecoverAction

This commit is contained in:
lutepickle 2023-03-06 17:20:49 -08:00
parent 4504d02245
commit 2bb0871919
1 changed files with 2 additions and 2 deletions

View File

@ -1713,7 +1713,7 @@ namespace RJW_Menstruation
{
if (curStageHrs >= currentIntervalHours)
{
if (Pawn.health.capacities.GetLevel(xxx.reproduction) == 0 || EggHealth <= 0 || Pawn.SterileGenes())
if (ImplantChance <= 0.0f || EggHealth <= 0)
{
GoNextStage(Stage.Infertile);
}
@ -1735,7 +1735,7 @@ namespace RJW_Menstruation
protected virtual void InfertileAction()
{
if (Pawn.health.capacities.GetLevel(xxx.reproduction) <= 0 || EggHealth <= 0 || Pawn.SterileGenes())
if (ImplantChance <= 0 || EggHealth <= 0)
{
StayCurrentStageConst(Stage.Infertile);
}