Animals will prefer partners in estrus

This commit is contained in:
lutepickle 2022-04-27 22:13:50 -07:00
parent 749caa150a
commit 71f3ba9585
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View file

@ -168,6 +168,8 @@ namespace RJW_Menstruation
}
public static void Postfix(ref float __result, Pawn fucker, Pawn fucked)
{
if (__result <= 0) return;
if (HediffComp_Menstruation.IsInEstrus(fucker, true) && PregnancyHelper.CanImpregnate(fucked, fucker))
{
__result *= (1f + GetNetFertility(fucker, fucked) / 4);
@ -176,6 +178,10 @@ namespace RJW_Menstruation
{
__result *= (1f + GetNetFertility(fucker, fucked) / 40);
}
else if(xxx.is_animal(fucker) && HediffComp_Menstruation.IsInEstrus(fucked, true) && PregnancyHelper.CanImpregnate(fucker, fucked))
{
__result *= 1.25f;
}
}
}