Files
CalamityModPublic/Items/Accessories/CrownJewel.cs
T

33 lines
957 B
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class CrownJewel : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Crown Jewel");
Tooltip.SetDefault("Boosts life regen even while under the effects of a damaging debuff\n" +
"While under the effects of a damaging debuff you will gain 10 defense\n" +
"Revengeance drop");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 1;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.crownJewel = true;
}
}
}