using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; using Terraria; using Terraria.ID; using Terraria.Audio; using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Items.Weapons.Rogue { public class FinalDawn : RogueWeapon { public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FinalDawnSlash"); public override void SetDefaults() { Item.damage = 1500; Item.DamageType = RogueDamageClass.Instance; Item.width = 78; Item.height = 66; Item.noMelee = true; Item.useTime = Item.useAnimation = 15; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4; Item.value = CalamityGlobalItem.Rarity15BuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.autoReuse = false; Item.shoot = ProjectileType(); Item.shootSpeed = 1f; Item.useTurn = false; Item.channel = true; Item.noUseGraphic = true; } public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] + player.ownedProjectileCounts[ProjectileType()] + player.ownedProjectileCounts[ProjectileType()] + player.ownedProjectileCounts[ProjectileType()] + player.ownedProjectileCounts[ProjectileType()] <= 0; } }