Have the fertile end age for ovary power based off of a constant instead of RJW setttings

This commit is contained in:
lutepickle 2024-03-16 21:59:58 -07:00
parent 9eff6cc2cd
commit 2facc09926

View file

@ -1222,7 +1222,7 @@ namespace RJW_Menstruation
float avglittersize = AverageLitterSize(); float avglittersize = AverageLitterSize();
float fertStartAge = Pawn.RaceProps.lifeStageAges?.Find(stage => stage.def.reproductive)?.minAge ?? 0.0f; float fertStartAge = Pawn.RaceProps.lifeStageAges?.Find(stage => stage.def.reproductive)?.minAge ?? 0.0f;
float fertEndAge = Pawn.RaceProps.lifeExpectancy * (Pawn.IsAnimal() ? RJWPregnancySettings.fertility_endage_female_animal : RJWPregnancySettings.fertility_endage_female_humanlike); float fertEndAge = Pawn.RaceProps.lifeExpectancy * (Pawn.IsAnimal() ? 0.96f : 0.58f); // RJW default fertility_endage for animal and humanlike
if (fertEndAge < fertStartAge) fertEndAge = fertStartAge; if (fertEndAge < fertStartAge) fertEndAge = fertStartAge;
float raceCyclesPerYear = RaceCyclesPerYear(); float raceCyclesPerYear = RaceCyclesPerYear();