using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria;

namespace Decimation.Content.Items.Accessories
{
    internal class ShinySentinel : DecimationAccessory
    {
        protected override string ItemName => "Shiny Sentinel";
        protected override string ItemTooltip => "Doubles life and mana regeneration \n+5 defense";

        protected override void InitAccessory()
        {
            item.width = 30;
            item.height = 28;
            item.rare = Rarity.Rainbow.GetRarityValue();
            this.item.value = Item.buyPrice(0, 45);
            this.item.expert = true;
        }

        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            player.lifeRegen *= 2;
            player.manaRegen *= 2;
            player.statDefense += 5;
        }
    }
}