diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index d08d278b54..2123006908 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -48,18 +48,19 @@ namespace CalamityMod.CalPlayer public partial class CalamityPlayer : ModPlayer { #region Draw Hooks + - /* - public override void ModifyDrawLayerOrdering(IDictionary positions) + public override void HideDrawLayers(PlayerDrawSet drawInfo) { if (Player is null) return; // Remove shoe drawing effects if special legs are meant to be drawn. if (CalamityLists.legOverrideList.Contains(Player.legs)) - positions.Remove(PlayerDrawLayers.Leggings); + { + PlayerDrawLayers.Shoes.Hide(); + } } - */ public override void DrawEffects(PlayerDrawSet drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright) { diff --git a/Items/Accessories/ProfanedSoulCrystal.cs b/Items/Accessories/ProfanedSoulCrystal.cs index 194a41c448..58915a518c 100644 --- a/Items/Accessories/ProfanedSoulCrystal.cs +++ b/Items/Accessories/ProfanedSoulCrystal.cs @@ -47,6 +47,9 @@ namespace CalamityMod.Items.Accessories Tooltip.SetDefault("Transforms you into an emissary of the profaned goddess\n" + "This tooltip gets modified"); Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4)); + + int equipSlotLegs = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs); + ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true; } public override void SetDefaults() diff --git a/Items/Accessories/Vanity/Popo.cs b/Items/Accessories/Vanity/Popo.cs index da90955675..fe37716d0a 100644 --- a/Items/Accessories/Vanity/Popo.cs +++ b/Items/Accessories/Vanity/Popo.cs @@ -25,6 +25,9 @@ namespace CalamityMod.Items.Accessories.Vanity DisplayName.SetDefault("Magic Scarf and Hat"); Tooltip.SetDefault("Don't let the demons steal your nose\n" + "Transforms the holder into a snowman"); + + int equipSlotLegs = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs); + ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true; } public override void SetDefaults()