57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Magic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Microsoft.Xna.Framework;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class PhantasmalFury : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Phantasmal Fury");
|
|
Tooltip.SetDefault("Casts a phantasmal bolt that explodes into more bolts");
|
|
Item.staff[item.type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 320;
|
|
item.magic = true;
|
|
item.mana = 20;
|
|
item.width = 62;
|
|
item.height = 60;
|
|
item.useTime = 20;
|
|
item.useAnimation = 20;
|
|
item.useStyle = 5;
|
|
item.noMelee = true;
|
|
item.knockBack = 7.5f;
|
|
item.value = Item.buyPrice(1, 40, 0, 0);
|
|
item.rare = 10;
|
|
item.UseSound = SoundID.Item43;
|
|
item.autoReuse = true;
|
|
item.shoot = ModContent.ProjectileType<PhantasmalFuryProj>();
|
|
item.shootSpeed = 12f;
|
|
item.Calamity().postMoonLordRarity = 13;
|
|
}
|
|
|
|
public override Vector2? HoldoutOrigin()
|
|
{
|
|
return new Vector2(15, 15);
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.SpectreStaff);
|
|
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 2);
|
|
recipe.AddIngredient(ModContent.ItemType<DarkPlasma>());
|
|
recipe.AddTile(TileID.LunarCraftingStation);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|