41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using CalamityMod.Projectiles.Magic;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class Keelhaul : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Keelhaul");
|
|
Tooltip.SetDefault("Summons a geyser upon hitting an enemy\n" +
|
|
"Crumple 'em like paper");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 42;
|
|
item.height = 42;
|
|
item.damage = 55;
|
|
item.mana = 50;
|
|
item.magic = true;
|
|
item.noMelee = true;
|
|
item.useTime = 30;
|
|
item.useAnimation = 30;
|
|
item.useTurn = true;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.knockBack = 2f;
|
|
item.UseSound = SoundID.Item102;
|
|
item.autoReuse = true;
|
|
|
|
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
|
item.rare = ItemRarityID.Yellow;
|
|
item.Calamity().donorItem = true;
|
|
|
|
item.shoot = ModContent.ProjectileType<KeelhaulBubble>();
|
|
item.shootSpeed = 15f;
|
|
}
|
|
}
|
|
}
|