SkyanUltra
Terrarian
I'm currently making a gem robe type of armor, and it works fine other than the fact that when I put it on it doesn't display the bottom part of the robe, only the top part. Any help with this?
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
namespace Skyanull.Sets.Skyanite
{
[AutoloadEquip(EquipType.Body)]
internal class AquamarineRobe : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("Aquamarine Robe");
Tooltip.SetDefault("Increases maximum mana by 80"
+ "\nReduces mana usage by 18%");
}
public override void SetDefaults()
{
item.width = 34;
item.height = 28;
item.rare = 2;
item.defense = 3;
item.value = 40000;
}
public override void SetMatch(bool male, ref int equipSlot, ref bool robes)
{
robes = true;
equipSlot = mod.GetEquipSlot("AquamarineRobe_Legs", EquipType.Legs);
}
public override void DrawHands(ref bool drawHands, ref bool drawArms)
{
drawHands = true;
}
public override void UpdateEquip(Player player)
{
player.manaCost -= 0.18f;
player.statManaMax2 += 80;
}
}
}
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
namespace Skyanull.Sets.Skyanite
{
[AutoloadEquip(EquipType.Body)]
internal class AquamarineRobe : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("Aquamarine Robe");
Tooltip.SetDefault("Increases maximum mana by 80"
+ "\nReduces mana usage by 18%");
}
public override void SetDefaults()
{
item.width = 34;
item.height = 28;
item.rare = 2;
item.defense = 3;
item.value = 40000;
}
public override void SetMatch(bool male, ref int equipSlot, ref bool robes)
{
robes = true;
equipSlot = mod.GetEquipSlot("AquamarineRobe_Legs", EquipType.Legs);
}
public override void DrawHands(ref bool drawHands, ref bool drawArms)
{
drawHands = true;
}
public override void UpdateEquip(Player player)
{
player.manaCost -= 0.18f;
player.statManaMax2 += 80;
}
}
}