From c62b87ff8b434497f81fa3d90be91f32667bd2c5 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Sat, 27 Aug 2022 11:02:32 -0700 Subject: [PATCH] Have the induced pre-ovulation check for no condom --- .../RJW_Menstruation/HediffComps/MenstruationUtility.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs index 4f85edf..e80a69e 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs @@ -197,7 +197,10 @@ namespace RJW_Menstruation if (!includeOvary) break; if (comp is HediffComp_InducedOvulator) { - if (comp.Pawn.jobs.curDriver is JobDriver_Sex job && (job.Sexprops?.sexType == xxx.rjwSextype.Vaginal || job.Sexprops?.sexType == xxx.rjwSextype.DoublePenetration)) + if (comp.Pawn.jobs.curDriver is JobDriver_Sex job && + job.Sexprops != null && + !job.Sexprops.usedCondom && + (job.Sexprops.sexType == xxx.rjwSextype.Vaginal || job.Sexprops.sexType == xxx.rjwSextype.DoublePenetration)) return ContentFinder.Get("Ovaries/Ovary_01", true); else break; }