using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [AutoloadEquip(new EquipType[] { EquipType.HandsOn, EquipType.HandsOff } )] public class ElementalGauntlet : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { Item.width = 22; Item.height = 38; Item.value = CalamityGlobalItem.Rarity14BuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); modPlayer.eGauntlet = true; player.kbGlove = true; player.autoReuseGlove = true; player.meleeScaleGlove = true; player.GetAttackSpeed() += 0.15f; player.GetDamage() += 0.1f; } public override void AddRecipes() { CreateRecipe(). AddIngredient(ItemID.FireGauntlet). AddIngredient(). AddIngredient(ItemID.LunarBar, 8). AddIngredient(4). AddIngredient(4). AddTile(). Register(); } } }