public static float getFactorFertility(this RacePubertySetting that, HediffSet diffSet) { //look for wombs var heDiffs = that.RelaventHeDiffs(diffSet); if (!heDiffs.Any()) { return(0f); } return(1f); }
public static void applyPubertyDay(Pawn pawn, float severity) { if (!Recipe_Neuter.PartsToApplyOn(pawn).Any()) { return; } RacePubertySetting pubertySettings = pawn.RacePubertySetting(); var sexOrgans = pubertySettings.RelaventHeDiffs(pawn.health.hediffSet); if (sexOrgans.Any()) { ChestManager.pubertyChest(pawn, severity, pubertySettings); pubertySettings.DecideTooAddHair(pawn); } else { pubertySettings.roleOrganMaturity(pawn, severity); } }