2 - Malice items now drop on all modes. 3 - Malice item tooltip edited because it is now a pure challenge mode with no content gated behind it, except for Gael's Greatsword. 4 - Malice weapon damage reduced by 20%. They'll all require testing, but this was done to hopefully balance them on all modes a bit before that.
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 = 24;
|
|
item.melee = true;
|
|
item.useAnimation = 24;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.useTime = 24;
|
|
item.useTurn = true;
|
|
item.knockBack = 5.5f;
|
|
item.UseSound = SoundID.Item1;
|
|
item.autoReuse = true;
|
|
item.height = 66;
|
|
item.value = Item.buyPrice(0, 2, 0, 0);
|
|
item.rare = ItemRarityID.Green;
|
|
}
|
|
|
|
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<TemporalSadness>(), 60);
|
|
}
|
|
}
|
|
}
|