Files
CalamityModPublic/Items/Weapons/Magic/EyeofMagnus.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

45 lines
1.3 KiB
C#

using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Weapons.Magic
{
public class EyeofMagnus : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Eye of Magnus");
Tooltip.SetDefault("Fires powerful beams\n" +
"Heals mana and health on hit");
}
public override void SetDefaults()
{
item.width = 80;
item.damage = 55;
item.rare = 5;
item.useAnimation = 20;
item.useTime = 20;
item.useStyle = ItemUseStyleID.HoldingOut;
item.knockBack = 2f;
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon");
item.magic = true;
item.mana = 7;
item.autoReuse = true;
item.noMelee = true;
item.height = 50;
item.value = Item.buyPrice(0, 36, 0, 0);
item.shoot = ModContent.ProjectileType<MagnusBeam>();
item.shootSpeed = 12f;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-15, 0);
}
}
}