private bool TryGetValue(StatRequest req, out float value)
 {
     if (StatPart_GearAndInventoryMass.< > f__mg$cache0 == null)
     {
         StatPart_GearAndInventoryMass.< > f__mg$cache0 = new Func <Pawn, float>(MassUtility.GearAndInventoryMass);
     }
     return(PawnOrCorpseStatUtility.TryGetPawnOrCorpseStat(req, StatPart_GearAndInventoryMass.< > f__mg$cache0, (ThingDef x) => 0f, out value));
 }
 private bool TryGetIsFleshFactor(StatRequest req, out float bodySize)
 {
     return(PawnOrCorpseStatUtility.TryGetPawnOrCorpseStat(req, (Pawn x) => (!x.RaceProps.IsFlesh) ? 0f : 1f, (ThingDef x) => (!x.race.IsFlesh) ? 0f : 1f, out bodySize));
 }
Example #3
0
 private bool TryGetBodySize(StatRequest req, out float bodySize)
 {
     return(PawnOrCorpseStatUtility.TryGetPawnOrCorpseStat(req, (Func <Pawn, float>)((Pawn x) => x.BodySize), (Func <ThingDef, float>)((ThingDef x) => x.race.baseBodySize), out bodySize));
 }
 private bool TryGetValue(StatRequest req, out float value)
 {
     return(PawnOrCorpseStatUtility.TryGetPawnOrCorpseStat(req, (Func <Pawn, float>)((Pawn x) => x.health.hediffSet.GetCoverageOfNotMissingNaturalParts(x.RaceProps.body.corePart)), (Func <ThingDef, float>)((ThingDef x) => 1f), out value));
 }
 private bool TryGetValue(StatRequest req, out float value)
 {
     return(PawnOrCorpseStatUtility.TryGetPawnOrCorpseStat(req, (Pawn x) => this.GetAddedBodyPartsMass(x), (ThingDef x) => 0f, out value));
 }
 private bool TryGetValue(StatRequest req, out float value)
 {
     return(PawnOrCorpseStatUtility.TryGetPawnOrCorpseStat(req, new Func <Pawn, float>(MassUtility.GearAndInventoryMass), (ThingDef x) => 0f, out value));
 }