Decimation_Mod/Content/Items/Misc/LunarTablet.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

39 lines
995 B
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria;
namespace Decimation.Content.Items.Misc
{
internal class LunarTablet : DecimationItem
{
protected override string ItemName => "Lunar Tablet";
protected override string ItemTooltip => "Summons the full moon.";
protected override void Init()
{
item.width = 30;
item.height = 40;
item.consumable = true;
item.value = Item.buyPrice(gold: 2, silver: 50);
item.rare = Rarity.Green.GetRarityValue();
item.useStyle = 1;
item.useTime = 20;
item.useAnimation = 20;
this.item.maxStack = 1;
}
public override bool CanUseItem(Player player)
{
return Main.dayTime;
}
public override bool UseItem(Player player)
{
Main.moonPhase = 0;
Main.dayTime = false;
return true;
}
}
}