using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { public class PrimordialAncient : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Primordial Ancient"); Tooltip.SetDefault("An ancient relic from an ancient land\n" + "Casts a gigantic blast of dust"); } public override void SetDefaults() { item.damage = 170; item.magic = true; item.mana = 20; item.width = 40; item.height = 56; item.useTime = 18; item.useAnimation = 18; item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5; item.value = Item.buyPrice(1, 80, 0, 0); item.rare = ItemRarityID.Red; item.UseSound = SoundID.Item20; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 8f; item.Calamity().customRarity = CalamityRarity.DarkBlue; } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 5); recipe.AddIngredient(ModContent.ItemType(), 8); recipe.AddIngredient(ModContent.ItemType(), 20); recipe.AddTile(TileID.Bookcases); recipe.SetResult(this); recipe.AddRecipe(); } } }