Properly initialize ovaries for bad litterSizeCurves

This commit is contained in:
lutepickle 2022-05-30 16:54:41 -07:00
parent 6fc9b3d59a
commit b292c3f931
3 changed files with 5 additions and 1 deletions

Binary file not shown.

View file

@ -948,7 +948,8 @@ namespace RJW_Menstruation
float avglittersize;
try
{
avglittersize = Rand.ByCurveAverage(pawn.def.race.litterSizeCurve);
if (pawn.def.race.litterSizeCurve.Points.Count < 3) avglittersize = 1; // Account for busted littersizecurves
else avglittersize = Rand.ByCurveAverage(pawn.def.race.litterSizeCurve);
}
catch (NullReferenceException)
{

View file

@ -1,3 +1,6 @@
Version 1.0.6.4
- Fix ovary initialization for races with invalid litter sizes
Version 1.0.6.3
- Fix pawn generation for races with a single lifestage.
- Show womb gizmo for males with vaginas, too.