using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { public class KnowledgeDestroyer : LoreItem { public override void SetStaticDefaults() { DisplayName.SetDefault("The Destroyer"); Tooltip.SetDefault("A machine brought to life by the mighty souls of warriors, and built to excavate massive tunnels in planets to gather resources.\n" + "Could have proven useful if Draedon didn't have an obsession with turning everything into a tool of destruction."); } public override void SetDefaults() { item.width = 20; item.height = 20; item.rare = ItemRarityID.Pink; item.consumable = false; } public override bool CanUseItem(Player player) { return false; } public override void AddRecipes() { ModRecipe r = new ModRecipe(mod); r.SetResult(this); r.AddTile(TileID.Bookcases); r.AddIngredient(ItemID.DestroyerTrophy); r.AddIngredient(ModContent.ItemType(), 10); r.AddRecipe(); } } }