Ovulate based off of the pawn's def instead of their raceprops

This commit is contained in:
lutepickle 2022-07-26 21:16:36 -07:00
parent 8937126f0f
commit ff7a06af99

View file

@ -1317,7 +1317,7 @@ namespace RJW_Menstruation
float eggnum; float eggnum;
try try
{ {
eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve); eggnum = Rand.ByCurve(parent.pawn.def.race.litterSizeCurve);
} }
catch (NullReferenceException) catch (NullReferenceException)
{ {
@ -1325,7 +1325,7 @@ namespace RJW_Menstruation
} }
catch (ArgumentException e) catch (ArgumentException e)
{ {
Log.Warning($"Invalid litterSizeCurve for {parent.pawn.RaceProps}: {e}"); Log.Warning($"Invalid litterSizeCurve for {parent.pawn.def}: {e}");
eggnum = 1; eggnum = 1;
} }
eggnum += eggstack; eggnum += eggstack;