Hid legs/shoes properly on Popo & PSC
This commit is contained in:
1 parent
bb4c63cd1e
commit
b8da4ceec5
3 files changed
+11
-4
No files matched your search
@@ -48,18 +48,19 @@ namespace CalamityMod.CalPlayer
|
||||
public partial class CalamityPlayer : ModPlayer
|
||||
{
|
||||
#region Draw Hooks
|
||||
|
||||
|
||||
/*
|
||||
public override void ModifyDrawLayerOrdering(IDictionary<PlayerDrawLayer, PlayerDrawLayer.Position> 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)
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user