Decimation_Mod/Content/Items/Accessories/ShinySentinel.cs
FyloZ 884e67c5e2 Updated some potions's sprite.
Changed buy price to sell price.
2020-07-09 18:03:44 -04:00

28 lines
836 B
C#

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.sellPrice(0, 45);
this.item.expert = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.lifeRegen *= 2;
player.manaRegen *= 2;
player.statDefense += 5;
}
}
}