Demonshade breastplates arm go over the shoulders

This commit is contained in:
IbanPlay committed 2022-06-11 23:23:14 +02:00
1 parent 1ddbb07e06
commit ef1dfed855
3 files changed
+15

No files matched your search

+6
View File
@@ -5859,6 +5859,12 @@ namespace CalamityMod.CalPlayer
Player.waist = (sbyte)EquipLoader.GetEquipSlot(Mod, "DaedalusBreastplate", EquipType.Waist);
}
if (Player.body == EquipLoader.GetEquipSlot(Mod, "DemonshadeBreastplate", EquipType.Body))
{
//Use an extra front layers to have the players arms draw above the shoulderpads that droop
Player.front = (sbyte)EquipLoader.GetEquipSlot(Mod, "DemonshadeBreastplate", EquipType.Front);
}
bool victideBreastplateVisible = Player.body == EquipLoader.GetEquipSlot(Mod, "VictideBreastplate", EquipType.Body);
//Give the player faulds if either the body armor or the leggings are equipped
if (victideBreastplateVisible || Player.legs == EquipLoader.GetEquipSlot(Mod, "VictideGreaves", EquipType.Legs))
@@ -3,12 +3,21 @@ using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Armor.Demonshade
{
[AutoloadEquip(EquipType.Body)]
public class DemonshadeBreastplate : ModItem
{
public override void Load()
{
if (Main.netMode != NetmodeID.Server)
{
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Demonshade/DemonshadeBreastplate_Arms", EquipType.Front, this);
}
}
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB