This is the top part of the robe:Could you show us some context code?
Code:
using System;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Mod1.Items.Armor
{
public class SpectralCloak : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Body);
return true;
}
public override void SetMatch(ref int equipSlot, ref bool robes){
EquipTexture eq = EquipLoader.GetEquipTexture(EquipType.Legs,mod.GetEquipSlot("SpectralWaist"));
equipSlot = eq.Slot;
robes = true;
}
public override void SetDefaults()
{
item.name = "Spectral Cloak";
item.width = 18;
item.height = 18;
item.toolTip ="Armor from another platform.";
item.value = 30000;
item.rare = 3;
item.vanity = true;
}
public virtual bool IsVanitySet(int head, int body, int legs)
{
return head == mod.ItemType("SpectralHeadgear") && body == mod.ItemType("SpectralCloak") && legs == mod.ItemType("SpectralPants");
}
public virtual void DrawHands(ref bool drawHands, ref bool drawArms){
drawHands = true;
}
public override void ArmorSetShadows(Player player, ref bool longTrail, ref bool smallPulse, ref bool largePulse, ref bool shortTrail){
shortTrail= true;
smallPulse = true;
}
}
}
Bottom part:
Code:
using System;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Mod1.Items.Armor
{
public class SpectralWaist : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Legs);
return true;
}
}
}