// // public static void Patch_ThingDef_SpecialDisplayStats(ThingDef __instance, ref IEnumerable<StatDrawEntry> __result) // { // if(__instance.HasComp(typeof(CompShield))) // { // List<StatDrawEntry> result = new List<StatDrawEntry>(__result); // // new StatDrawEntry(StatCategoryDefOf.Apparel, "Covers".Translate(), coveredParts, 100, string.Empty); // // __result = result; // } // } public static void Patch_PawnGenerator_GenerateGearFor(Pawn pawn, ref PawnGenerationRequest request) { if (pawn != null) { PawnShieldGenerator.TryGenerateShieldFor(pawn, request); } }
static Shields() { PawnShieldGenerator.Reset(); }