41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using CalamityMod.Projectiles.Magic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Microsoft.Xna.Framework;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class Atlantis : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Atlantis");
|
|
Tooltip.SetDefault("Casts aquatic spears that split as they travel");
|
|
Item.staff[item.type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 70;
|
|
item.magic = true;
|
|
item.mana = 12;
|
|
item.width = 28;
|
|
item.height = 30;
|
|
item.useTime = 25;
|
|
item.useAnimation = 25;
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.noMelee = true;
|
|
item.knockBack = 5f;
|
|
item.value = Item.buyPrice(0, 60, 0, 0);
|
|
item.rare = 7;
|
|
item.UseSound = SoundID.Item34;
|
|
item.autoReuse = true;
|
|
item.shoot = ModContent.ProjectileType<AtlantisSpear>();
|
|
item.shootSpeed = 32f;
|
|
}
|
|
|
|
public override Vector2? HoldoutOrigin() => new Vector2(15, 15);
|
|
}
|
|
}
|