From 2081ac07b671f8827ed29979ada30e94083ddc11 Mon Sep 17 00:00:00 2001 From: ViralReaction <136116069+ViralReaction@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:15:23 -0600 Subject: [PATCH] Housekeeping --- .../CombatExtended/Loadouts/ITab_Inventory.cs | 4 ++-- .../CombatExtended/Things/Apparel_Shield.cs | 2 +- Source/CombatExtended/Harmony/Harmony_ThingDef.cs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/CombatExtended/CombatExtended/Loadouts/ITab_Inventory.cs b/Source/CombatExtended/CombatExtended/Loadouts/ITab_Inventory.cs index 8073e25321..265ce3350e 100644 --- a/Source/CombatExtended/CombatExtended/Loadouts/ITab_Inventory.cs +++ b/Source/CombatExtended/CombatExtended/Loadouts/ITab_Inventory.cs @@ -518,7 +518,7 @@ private void RebuildArmorCache(Dictionary armorCache, Sta armorCache.Clear(); float naturalArmor = SelPawnForGear.GetStatValue(stat); List wornApparel = SelPawnForGear.apparel?.WornApparel; - var shield = wornApparel.FirstOrDefault(x => x is Apparel_Shield); + var shield = wornApparel.FirstOrDefault(x => x is Apparel_Shield); foreach (BodyPartRecord part in SelPawnForGear.RaceProps.body.AllParts) { //TODO: 1.5 should be Neck @@ -538,7 +538,7 @@ private void RebuildArmorCache(Dictionary armorCache, Sta if (shield != null) { var shieldCoverage = shield.def.GetModExtension().PartIsCoveredByShield(part, SelPawnForGear); - if(shieldCoverage) + if (shieldCoverage) { armorValue += shield.GetStatValue(stat); } diff --git a/Source/CombatExtended/CombatExtended/Things/Apparel_Shield.cs b/Source/CombatExtended/CombatExtended/Things/Apparel_Shield.cs index 2eff7a479c..a31200c1a3 100644 --- a/Source/CombatExtended/CombatExtended/Things/Apparel_Shield.cs +++ b/Source/CombatExtended/CombatExtended/Things/Apparel_Shield.cs @@ -57,7 +57,7 @@ orderby t.seniority descending if (shieldCoverage != null) { yield return new StatDrawEntry(StatCategoryDefOf.Apparel, "CE_Shield_Coverage".Translate(), ShieldDefExtension.GetShieldProtectedAreas(BodyDefOf.Human, this.def), "CE_Shield_Coverage_Desc".Translate(), 800, null); - } + } yield break; } public override void DrawWornExtras() diff --git a/Source/CombatExtended/Harmony/Harmony_ThingDef.cs b/Source/CombatExtended/Harmony/Harmony_ThingDef.cs index 4c6a5fe01b..9d0422bbe3 100644 --- a/Source/CombatExtended/Harmony/Harmony_ThingDef.cs +++ b/Source/CombatExtended/Harmony/Harmony_ThingDef.cs @@ -209,10 +209,10 @@ internal static IEnumerable Transpiler(IEnumerable