Decimation_Mod/Content/Items/Misc/BloodyLunarTablet.cs
FyloZ ec4585bed5 - Changed Bloodshot Eye's music to Boss 1 Orchestra ( https://www.youtube.com/watch?time_continue=120&v=r-9nKGc85FQ )
- Added support for animated projectiles
- Refactoring
- Removed useless fields
- Fixed swords not dealing damages
- Added Hour Hand (from Evie's PR)
2020-03-21 00:11:07 -04:00

37 lines
963 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.buyPrice(gold: 5);
item.useStyle = 1;
item.useTime = 20;
item.useAnimation = 20;
item.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;
}
}
}