public static void CanWearTogether_Postfix(ThingDef A, ThingDef B, BodyDef body, ref bool __result) { if (A.apparel.bodyPartGroups.NullOrEmpty() || A.defName.Contains("OG") && A.defName.Contains("_Wargear_")) { bool flag1 = (!A.apparel.tags.Contains("OGEnergyShield") || !B.apparel.tags.Contains("OGEnergyShield")); __result = A != B && flag1; } ApparelRestrictionDefExtension extA = A.GetModExtensionFast <ApparelRestrictionDefExtension>(); ApparelRestrictionDefExtension extB = A.GetModExtensionFast <ApparelRestrictionDefExtension>(); bool restricted = extA != null || extB != null; if (restricted) { if (extA != null) { } if (extB != null) { } } }