Somehow OvaryPowerThreshold can end up as 0 and cause errors, so be sure to make it minimum 1

This commit is contained in:
lutepickle 2022-10-31 20:53:57 -07:00
parent 03f511fa02
commit 483ab2f7c0
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -166,7 +166,7 @@ namespace RJW_Menstruation
{
get
{
if (opcache >= 0) return opcache;
if (opcache > 0) return opcache;
float avglittersize;
try
{
@ -182,6 +182,7 @@ namespace RJW_Menstruation
avglittersize *
yearsBeforeMenopause *
(Pawn.def.race.lifeExpectancy / ThingDefOf.Human.race.lifeExpectancy));
if (opcache == 0) opcache = 1;
return opcache;
}
}