Decimation_Mod/Content/Items/Tools/TheHourGlass.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

32 lines
878 B
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria;
namespace Decimation.Content.Items.Tools
{
internal class TheHourGlass : DecimationTool
{
protected override string ItemName => "The Hour Glass";
protected override string ItemTooltip => "Costs 50 mana.";
protected override void InitTool()
{
this.item.mana = 50;
item.width = 22;
item.height = 36;
item.useTime = 16;
item.useAnimation = 16;
item.useStyle = 4;
item.rare = Rarity.Purple.GetRarityValue();
this.item.expert = true;
}
public override bool UseItem(Player player)
{
if (Main.dayTime)
Main.dayTime = false;
else if (!Main.dayTime) Main.dayTime = true;
return true;
}
}
}