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

38 lines
993 B
C#

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