Files
CalamityModPublic/Items/Weapons/Melee/GildedProboscis.cs
T
Andrew Marheine 8e887c0c21 1 - Crabulon, Astrum Aureus and Ravager can now walk on platforms.
2 - True melee damage tooltip only displays on true melee weapons.
3 - True melee code adjustments to make it better.
2021-09-19 18:25:38 -05:00

41 lines
1.2 KiB
C#

using CalamityMod.Projectiles.Melee.Spears;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class GildedProboscis : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Gilded Proboscis");
Tooltip.SetDefault("Heals the player on hit");
}
public override void SetDefaults()
{
item.width = 66;
item.damage = 315;
item.melee = true;
item.noMelee = true;
item.useTurn = true;
item.noUseGraphic = true;
item.useAnimation = 19;
item.useStyle = ItemUseStyleID.HoldingOut;
item.useTime = 19;
item.knockBack = 8.75f;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
item.height = 66;
item.value = CalamityGlobalItem.Rarity11BuyPrice;
item.rare = ItemRarityID.Purple;
item.shoot = ModContent.ProjectileType<GildedProboscisProj>();
item.shootSpeed = 13f;
item.Calamity().trueMelee = true;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
}
}