public static void ApparelUtility__HasPartsToWearPostfix (Pawn p, ThingDef apparel, ref bool __result) { if (apparel.HasComp(typeof(CompApparelBodyRestriction))) { CompProperties_ApparelBodyRestriction compProperties = apparel.GetCompProperties <CompProperties_ApparelBodyRestriction>(); if (compProperties != null) { __result = compProperties.AllowedBodyTypes.Contains(p.story.bodyType); } // end if } // end if } // end method
// Token: 0x06000017 RID: 23 RVA: 0x000027DC File Offset: 0x000009DC public static void Post_HasPartsToWear_BodyTypeRestriction(Pawn p, ThingDef apparel, ref bool __result) { bool flag = apparel.HasComp(typeof(CompApparelBodyRestriction)); if (flag) { CompProperties_ApparelBodyRestriction compProperties = apparel.GetCompProperties <CompProperties_ApparelBodyRestriction>(); bool flag2 = compProperties != null; if (flag2) { bool flag3 = !compProperties.AllowedBodyTypes.Contains(p.story.bodyType); if (flag3) { __result = false; } } } }