mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Remove availableWomb from CanFertilize. It's only used for fetishes, and it won't be DangerDay if they're all pregnant
This commit is contained in:
parent
c0043d2936
commit
70346a0901
3 changed files with 5 additions and 7 deletions
Binary file not shown.
|
@ -90,7 +90,7 @@ namespace RJW_Menstruation
|
|||
}
|
||||
|
||||
// A looser CanImpregnate
|
||||
public static bool CanFertilize(Pawn fucker, Pawn fucked, xxx.rjwSextype sexType = xxx.rjwSextype.Vaginal, bool availableWomb = false)
|
||||
public static bool CanFertilize(Pawn fucker, Pawn fucked, xxx.rjwSextype sexType = xxx.rjwSextype.Vaginal)
|
||||
{
|
||||
if (fucker == null || fucked == null) return false;
|
||||
|
||||
|
@ -114,8 +114,6 @@ namespace RJW_Menstruation
|
|||
|
||||
if (fucker.def.defName != fucked.def.defName && RJWPregnancySettings.interspecies_impregnation_modifier <= 0.0f && !RJWPregnancySettings.complex_interspecies) return false;
|
||||
|
||||
if (availableWomb && fucked.GetMenstruationComps().All(comp => comp.Pregnancy != null)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -144,9 +144,9 @@ namespace RJW_Menstruation
|
|||
// This is stricter than can_impregnate, so quickly filter out scenarios that are negative anyways.
|
||||
if (__result == false || __instance != Quirk.ImpregnationFetish) return;
|
||||
__result =
|
||||
(MenstruationUtility.CanFertilize(pawn, partner, availableWomb: true) && (partner.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true))
|
||||
(MenstruationUtility.CanFertilize(pawn, partner) && (partner.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true))
|
||||
||
|
||||
(MenstruationUtility.CanFertilize(partner, pawn, availableWomb: true) && (pawn.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true));
|
||||
(MenstruationUtility.CanFertilize(partner, pawn) && (pawn.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -165,9 +165,9 @@ namespace RJW_Menstruation
|
|||
else __result--;
|
||||
|
||||
if (
|
||||
(MenstruationUtility.CanFertilize(pawn, partner, props.sexType, true) && (partner.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true))
|
||||
(MenstruationUtility.CanFertilize(pawn, partner, props.sexType) && (partner.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true))
|
||||
||
|
||||
(MenstruationUtility.CanFertilize(partner, pawn, props.sexType, true) && (pawn.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true)))
|
||||
(MenstruationUtility.CanFertilize(partner, pawn, props.sexType) && (pawn.GetMenstruationComps()?.Any(comp => comp.IsDangerDay) ?? true)))
|
||||
__result++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue