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

57 lines
1.7 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class Fabstaff : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fabstaff");
Tooltip.SetDefault("Casts a bouncing beam that splits when enemies are near it");
Item.staff[Item.type] = true;
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.damage = 125;
Item.DamageType = DamageClass.Magic;
Item.mana = 50;
Item.width = 84;
Item.height = 84;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 5f;
Item.value = CalamityGlobalItem.Rarity16BuyPrice;
Item.rare = ModContent.RarityType<HotPink>();
Item.Calamity().devItem = true;
Item.UseSound = SoundID.Item60;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<FabRay>();
Item.shootSpeed = 13.5f;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.RainbowRod).
AddIngredient<Phantoplasm>(10).
AddIngredient<ShadowspecBar>(5).
AddTile<DraedonsForge>().
Register();
}
}
}