Let <= 0 age fertility stay in the patches

This commit is contained in:
lutepickle 2023-12-05 16:23:23 -08:00
parent cb8d824a2c
commit 3498caf3a2
2 changed files with 3 additions and 1 deletions

View File

@ -224,6 +224,7 @@ namespace RJW_Menstruation
{
public static void Postfix(ref float __result, Pawn pawn)
{
if (__result <= 0.0f) return;
if (pawn.GetMenstruationComps().Any(comp => comp.CalculatingOvulationChance))
__result = 1.0f;
}

View File

@ -379,8 +379,9 @@ namespace RJW_Menstruation
{
public static void Postfix(ref float __result, Pawn pawn)
{
if (__result <= 0.0f) return;
if (pawn.GetMenstruationComps().Any(comp => comp.CalculatingOvulationChance))
__result = 1f;
__result = 1.0f;
}
}
}