using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { public class WrathoftheAncients : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Wrath of the Ancients"); Tooltip.SetDefault("Summons an energy pulse at the cursor to periodically summon homing spirits"); } public override void SetDefaults() { item.damage = 47; item.magic = true; item.mana = 20; item.width = 28; item.height = 30; item.useTime = 38; item.useAnimation = 38; item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 6f; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = ItemRarityID.Yellow; item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 9f; } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(Main.MouseWorld, Vector2.Zero, type, damage, knockBack, player.whoAmI, 0f, 0f); return false; } } }