Removed Warblade

This commit is contained in:
Dominic committed 2022-06-11 20:01:01 -05:00
1 parent 97bcc571c8
commit 7acbf3e433
2 files changed
-50

No files matched your search

-50
View File
@@ -1,50 +0,0 @@
using CalamityMod.Buffs.StatDebuffs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class Warblade : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Warblade");
Tooltip.SetDefault("Critical hits cleave enemy armor, reducing their defense by 15 and protection by 25%");
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.damage = 27;
Item.DamageType = DamageClass.Melee;
Item.width = 32;
Item.height = 48;
Item.useTime = 19;
Item.useAnimation = 19;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 4.25f;
Item.value = Item.buyPrice(0, 1, 0, 0);
Item.rare = ItemRarityID.Blue;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (crit)
{
target.AddBuff(ModContent.BuffType<WarCleave>(), 450);
}
}
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
if (crit)
{
target.AddBuff(ModContent.BuffType<WarCleave>(), 450);
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 646 B