50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
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(null, "PrimordialEarth");
|
|
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 10);
|
|
recipe.AddIngredient(null, "CosmiliteBar", 10);
|
|
recipe.AddIngredient(null, "Phantoplasm", 5);
|
|
recipe.AddTile(null, "DraedonsForge");
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|