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

28 lines
824 B
C#

namespace Decimation.Lib.Items
{
public abstract class DecimationTool : DecimationItem
{
protected virtual int MeleeDamages { get; } = 0;
protected virtual int PickaxePower { get; } = 0;
protected virtual int AxePower { get; } = 0;
protected virtual int HammerPower { get; } = 0;
protected abstract void InitTool();
protected override void Init()
{
item.autoReuse = true;
this.item.useTurn = true;
this.item.maxStack = 1;
InitTool();
this.item.damage = this.MeleeDamages;
this.item.pick = this.PickaxePower;
this.item.axe = this.AxePower;
this.item.hammer = this.HammerPower;
if (this.MeleeDamages > 0) this.item.melee = true;
}
}
}