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

38 lines
962 B
C#

namespace Decimation.Lib.Items
{
public abstract class DecimationPotion : DecimationItem
{
protected virtual int HealLife { get; } = 0;
protected virtual int HealMana { get; } = 0;
protected abstract int BuffType { get; }
protected abstract int BuffTime { get; }
protected abstract void InitPotion();
protected sealed override void Init()
{
item.width = 20;
item.height = 20;
item.consumable = true;
item.useTime = 20;
item.useAnimation = 20;
item.maxStack = 30;
item.useTurn = true;
item.useStyle = 2;
InitPotion();
item.healLife = HealLife;
item.healMana = HealMana;
item.buffType = BuffType;
item.buffTime = BuffTime;
if (HealLife > 0)
{
item.potion = true;
}
}
}
}