49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using CalamityMod.Projectiles.Magic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class FlareBolt : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Flare Bolt");
|
|
Tooltip.SetDefault("Casts a slow-moving ball of flame");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 42;
|
|
item.magic = true;
|
|
item.mana = 12;
|
|
item.width = 28;
|
|
item.height = 30;
|
|
item.useTime = 30;
|
|
item.useAnimation = 30;
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.noMelee = true;
|
|
item.knockBack = 5.5f;
|
|
item.value = Item.buyPrice(0, 4, 0, 0);
|
|
item.rare = ItemRarityID.Orange;
|
|
item.UseSound = SoundID.Item20;
|
|
item.autoReuse = true;
|
|
item.shoot = ModContent.ProjectileType<FlareBoltProjectile>();
|
|
item.shootSpeed = 7.5f;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.HellstoneBar, 6);
|
|
recipe.AddIngredient(ItemID.Obsidian, 9);
|
|
recipe.AddIngredient(ItemID.Fireblossom, 2);
|
|
recipe.AddIngredient(ItemID.LavaBucket);
|
|
recipe.AddTile(TileID.Bookcases);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|