39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using CalamityMod.Buffs.StatDebuffs;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Melee
|
|
{
|
|
public class TeardropCleaver : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Teardrop Cleaver");
|
|
Tooltip.SetDefault("Makes your enemies cry");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 56;
|
|
item.damage = 18;
|
|
item.melee = true;
|
|
item.useAnimation = 24;
|
|
item.useStyle = 1;
|
|
item.useTime = 24;
|
|
item.useTurn = true;
|
|
item.knockBack = 4.5f;
|
|
item.UseSound = SoundID.Item1;
|
|
item.autoReuse = true;
|
|
item.height = 66;
|
|
item.value = Item.buyPrice(0, 2, 0, 0);
|
|
item.rare = 2;
|
|
}
|
|
|
|
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<TemporalSadness>(), 120);
|
|
}
|
|
}
|
|
}
|