Fixed shoes being a meme with transforms

This commit is contained in:
Amber Sienna committed 2020-03-31 15:56:06 +01:00
1 parent 7f0b99e88d
commit e06e579a18
2 files changed
+15

No files matched your search

+3
View File
@@ -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);
+12
View File
@@ -208,6 +208,8 @@ namespace CalamityMod
public static List<int> hornetList;
public static List<int> mossHornetList;
public static List<int> 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<int>()
{
instance.GetEquipSlot("ProviLegs", EquipType.Legs),
instance.GetEquipSlot("SirenLegAlt", EquipType.Legs),
instance.GetEquipSlot("SirenLeg", EquipType.Legs),
instance.GetEquipSlot("PopoLeg", EquipType.Legs)
};
}
#endregion