Use Max for the avglittersize
This commit is contained in:
parent
096f941762
commit
96c81c70bf
Binary file not shown.
|
@ -970,7 +970,7 @@ namespace RJW_Menstruation
|
|||
float avglittersize;
|
||||
try
|
||||
{
|
||||
avglittersize = Mathf.Min(Rand.ByCurveAverage(pawn.def.race.litterSizeCurve), 1.0f);
|
||||
avglittersize = Mathf.Max(Rand.ByCurveAverage(pawn.def.race.litterSizeCurve), 1.0f);
|
||||
}
|
||||
catch (NullReferenceException)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue