28 lines
848 B
C#
28 lines
848 B
C#
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util;
|
|
using Terraria;
|
|
|
|
namespace Decimation.Content.Items.Accessories
|
|
{
|
|
internal class NecrosisStone : DecimationAccessory
|
|
{
|
|
protected override string ItemName => "Necrosis Stone";
|
|
|
|
protected override string ItemTooltip =>
|
|
"This stone breathes life into once deceased creatures\nReduces respawn time by 50%";
|
|
|
|
protected override void InitAccessory()
|
|
{
|
|
item.width = 32;
|
|
item.height = 32;
|
|
item.rare = Rarity.Rainbow.GetRarityValue();
|
|
item.value = Item.sellPrice(gold: 5);
|
|
item.expert = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.GetModPlayer<DecimationPlayer>().necrosisStoneEquipped = true;
|
|
}
|
|
}
|
|
} |