Slight simplification of SetEstrus

This commit is contained in:
lutepickle 2022-07-12 19:31:24 -07:00
parent 2b8d822542
commit 6e841a3836

View file

@ -1031,9 +1031,8 @@ namespace RJW_Menstruation
} }
else else
{ {
HediffDef concealedEstrusDef = VariousDefOf.Hediff_Estrus_Concealed; Hediff concealedHediff = parent.pawn.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_Estrus_Concealed);
Hediff concealedHediff = parent.pawn.health.hediffSet.GetFirstHediffOfDef(concealedEstrusDef); if (concealedHediff != null) parent.pawn.health.RemoveHediff(concealedHediff);
if (parent.pawn.health.hediffSet.HasHediff(concealedEstrusDef)) parent.pawn.health.RemoveHediff(concealedHediff);
} }
if (hediff != null) if (hediff != null)