using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { [LegacyName("GammaFusillade")] public class Biofusillade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() { Item.damage = 80; Item.DamageType = DamageClass.Magic; Item.mana = 4; Item.width = 28; Item.height = 30; Item.useTime = 3; Item.useAnimation = 3; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; Item.value = CalamityGlobalItem.Rarity12BuyPrice; Item.UseSound = SoundID.Item33; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; Item.rare = ModContent.RarityType(); } public override void AddRecipes() { CreateRecipe(). AddIngredient(ItemID.SpellTome). AddIngredient(8). AddTile(TileID.Bookcases). Register(); } } }