mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Ovulate based off of the pawn's def instead of their raceprops
This commit is contained in:
parent
8937126f0f
commit
ff7a06af99
1 changed files with 2 additions and 2 deletions
|
@ -1317,7 +1317,7 @@ namespace RJW_Menstruation
|
|||
float eggnum;
|
||||
try
|
||||
{
|
||||
eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve);
|
||||
eggnum = Rand.ByCurve(parent.pawn.def.race.litterSizeCurve);
|
||||
}
|
||||
catch (NullReferenceException)
|
||||
{
|
||||
|
@ -1325,7 +1325,7 @@ namespace RJW_Menstruation
|
|||
}
|
||||
catch (ArgumentException e)
|
||||
{
|
||||
Log.Warning($"Invalid litterSizeCurve for {parent.pawn.RaceProps}: {e}");
|
||||
Log.Warning($"Invalid litterSizeCurve for {parent.pawn.def}: {e}");
|
||||
eggnum = 1;
|
||||
}
|
||||
eggnum += eggstack;
|
||||
|
|
Loading…
Reference in a new issue