From e06e579a181dfcf2d5d50a9b39db6d1f00a666fa Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Tue, 31 Mar 2020 15:56:06 +0100 Subject: [PATCH] Fixed shoes being a meme with transforms --- CalPlayer/CalamityPlayer.cs | 3 +++ CalamityMod.cs | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index d75a4f515b..b61706a376 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -8525,6 +8525,9 @@ namespace CalamityMod.CalPlayer list.Insert(list.IndexOf(PlayerLayer.Skin) + 1, Skin); MiscEffects.visible = true; list.Add(MiscEffects); + + if (CalamityMod.legOverrideList.Contains(player.legs)) + list[list.IndexOf(PlayerLayer.ShoeAcc)].visible = false; if (fab || crysthamyr || onyxExcavator) { AddPlayerLayer(list, clAfterAll, list[list.Count - 1], false); diff --git a/CalamityMod.cs b/CalamityMod.cs index 60cbeb7690..2df86e0fa8 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -208,6 +208,8 @@ namespace CalamityMod public static List hornetList; public static List mossHornetList; + public static List legOverrideList; + // TODO -- Calamity should check for other mods existing in exactly one place internal Mod thorium = null; public bool fargosMutant = false; @@ -415,6 +417,8 @@ namespace CalamityMod hornetList = null; mossHornetList = null; + legOverrideList = null; + thorium = null; fargosMutant = false; @@ -2804,6 +2808,14 @@ namespace CalamityMod revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("RealityFury")); revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("UFOBlast")); } + + legOverrideList = new List() + { + instance.GetEquipSlot("ProviLegs", EquipType.Legs), + instance.GetEquipSlot("SirenLegAlt", EquipType.Legs), + instance.GetEquipSlot("SirenLeg", EquipType.Legs), + instance.GetEquipSlot("PopoLeg", EquipType.Legs) + }; } #endregion