Decimation_Mod/Lib/Items/DecimationPlaceableItem.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

26 lines
623 B
C#

namespace Decimation.Lib.Items
{
public abstract class DecimationPlaceableItem : DecimationItem
{
protected abstract int Tile { get; }
protected abstract void InitPlaceable();
protected sealed override void Init()
{
item.width = 12;
item.height = 12;
item.consumable = true;
item.useTime = 15;
item.useAnimation = 15;
item.useStyle = 1;
item.consumable = true;
this.item.useTurn = true;
InitPlaceable();
this.item.createTile = this.Tile;
}
}
}