mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Tiny refactor to adding stacked eggs to ovulation
This commit is contained in:
parent
6ec27b6aba
commit
902cd65375
1 changed files with 4 additions and 3 deletions
|
@ -1326,17 +1326,18 @@ namespace RJW_Menstruation
|
|||
float eggnum;
|
||||
try
|
||||
{
|
||||
eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve) + eggstack;
|
||||
eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve);
|
||||
}
|
||||
catch(NullReferenceException)
|
||||
{
|
||||
eggnum = 1 + eggstack;
|
||||
eggnum = 1;
|
||||
}
|
||||
catch(ArgumentException e)
|
||||
{
|
||||
Log.Warning($"Invalid litterSizeCurve for {parent.pawn.RaceProps}: {e}");
|
||||
eggnum = 1 + eggstack;
|
||||
eggnum = 1;
|
||||
}
|
||||
eggnum += eggstack;
|
||||
|
||||
do
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue