Add a sterile genes check in the infertile and recovery actions

This commit is contained in:
lutepickle 2022-11-05 07:59:44 -07:00
parent b9494a9acc
commit 225e1fe143
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

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