Merge the two pregnancy-preventing conditions into one if

This commit is contained in:
lutepickle 2022-07-12 15:32:31 -07:00
parent 8babac6378
commit f5170ca700

View file

@ -1116,12 +1116,7 @@ namespace RJW_Menstruation
deadeggs.Add(egg);
continue;
}
else if (parent.pawn.health.hediffSet.GetHediffs<Hediff_InsectEgg>().Any())
{
deadeggs.Add(egg);
continue;
}
else if (pregnancy is Hediff_MechanoidPregnancy)
else if (parent.pawn.health.hediffSet.GetHediffs<Hediff_InsectEgg>().Any() || pregnancy is Hediff_MechanoidPregnancy)
{
deadeggs.Add(egg);
continue;
@ -1144,8 +1139,6 @@ namespace RJW_Menstruation
pregnant = true;
break;
}
}
else
{