From 6e841a3836e2b37afe13c0f4eafa316269de4507 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Tue, 12 Jul 2022 19:31:24 -0700 Subject: [PATCH] Slight simplification of SetEstrus --- .../RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index 9d77c1a..6328f2f 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -1031,9 +1031,8 @@ namespace RJW_Menstruation } else { - HediffDef concealedEstrusDef = VariousDefOf.Hediff_Estrus_Concealed; - Hediff concealedHediff = parent.pawn.health.hediffSet.GetFirstHediffOfDef(concealedEstrusDef); - if (parent.pawn.health.hediffSet.HasHediff(concealedEstrusDef)) parent.pawn.health.RemoveHediff(concealedHediff); + Hediff concealedHediff = parent.pawn.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_Estrus_Concealed); + if (concealedHediff != null) parent.pawn.health.RemoveHediff(concealedHediff); } if (hediff != null)