mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Merge the two pregnancy-preventing conditions into one if
This commit is contained in:
parent
8babac6378
commit
f5170ca700
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue