public static float GetBodyPartNutrition(float currentCorpseNutrition, Pawn pawn, BodyPartRecord part) { HediffSet hediffSet = pawn.health.hediffSet; float coverageOfNotMissingNaturalParts = hediffSet.GetCoverageOfNotMissingNaturalParts(pawn.RaceProps.body.corePart); if (coverageOfNotMissingNaturalParts <= 0f) { return(0f); } float num = hediffSet.GetCoverageOfNotMissingNaturalParts(part) / coverageOfNotMissingNaturalParts; return(currentCorpseNutrition * num); }