Have the induced pre-ovulation check for no condom

This commit is contained in:
lutepickle 2022-08-27 11:02:32 -07:00
parent 0518a3f40c
commit c62b87ff8b

View file

@ -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<Texture2D>.Get("Ovaries/Ovary_01", true);
else break;
}