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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue