33 lines
966 B
C#
33 lines
966 B
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class BloodyWormTooth : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Bloody Worm Tooth");
|
|
Tooltip.SetDefault("5% increased damage reduction and increased melee stats\n" +
|
|
"10% increased damage reduction and melee stats when below 50% life");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 12;
|
|
item.height = 15;
|
|
item.value = Item.buyPrice(0, 9, 0, 0);
|
|
item.expert = true;
|
|
item.rare = 9;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.bloodyWormTooth = true;
|
|
}
|
|
}
|
|
}
|