Files
CalamityModPublic/Items/Weapons/Magic/PrimordialAncient.cs
T

53 lines
1.7 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Tiles.Furniture.CraftingStations;
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 = 385;
item.magic = true;
item.mana = 20;
item.width = 28;
item.height = 30;
item.useTime = 17;
item.useAnimation = 17;
item.useStyle = 5;
item.noMelee = true;
item.knockBack = 5;
item.value = Item.buyPrice(1, 80, 0, 0);
item.rare = 10;
item.UseSound = SoundID.Item20;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<Ancient>();
item.shootSpeed = 8f;
item.Calamity().postMoonLordRarity = 14;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<PrimordialEarth>());
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 10);
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 10);
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}