Decimation_Mod/Items/Misc/BloodyLunarTablet.cs
2020-03-03 21:17:42 -05:00

37 lines
902 B
C#

using Decimation.Core.Items;
using Decimation.Core.Util;
using Terraria;
namespace Decimation.Items.Misc
{
internal class BloodyLunarTablet : DecimationItem
{
protected override string ItemName => "Bloody Lunar Tablet";
protected override string ItemTooltip => "Summon blood moon.";
protected override void Init()
{
width = 30;
height = 40;
rarity = Rarity.Green;
value = Item.buyPrice(gold: 5);
useStyle = 1;
useTime = 20;
useAnimation = 20;
consumable = true;
this.item.maxStack = 1;
}
public override bool CanUseItem(Player player)
{
return !Main.bloodMoon;
}
public override bool UseItem(Player player)
{
Main.bloodMoon = true;
return true;
}
}
}