Files
CalamityModPublic/Items/Armor/Vanity/SCalRobes.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

31 lines
848 B
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Armor.Vanity
{
[AutoloadEquip(EquipType.Body)]
public class SCalRobes : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Armor.Vanity";
public override void SetStaticDefaults()
{
if (Main.netMode != NetmodeID.Server)
{
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
ArmorIDs.Body.Sets.HidesTopSkin[equipSlot] = true;
}
}
public override void SetDefaults()
{
Item.width = 28;
Item.height = 20;
Item.rare = ItemRarityID.Blue;
Item.vanity = true;
}
}
}