using CalamityMod.Items.Placeables.Ores; using CalamityMod.Tiles; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Materials { [LegacyName("DraedonBar")] public class PerennialBar : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Materials"; public override void SetStaticDefaults() { Item.ResearchUnlockCount = 25; ItemID.Sets.SortingPriorityMaterials[Type] = 92; // Shroomite Bar } public override void SetDefaults() { Item.createTile = ModContent.TileType(); Item.useStyle = ItemUseStyleID.Swing; Item.useTurn = true; Item.useAnimation = 15; Item.useTime = 10; Item.autoReuse = true; Item.consumable = true; Item.width = 30; Item.height = 24; Item.maxStack = 9999; Item.value = Item.sellPrice(gold: 1); Item.rare = ItemRarityID.Lime; } public override void AddRecipes() { CreateRecipe(). AddIngredient(4). AddTile(TileID.AdamantiteForge). Register(); } } }