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

29 lines
825 B
C#

using Decimation.Lib.Util;
using Terraria;
namespace Decimation.Lib.Items
{
public abstract class DecimationAmmo : DecimationItem
{
protected abstract string Projectile { get; }
protected abstract int Ammo { get; }
protected virtual int Damages { get; set; } = 0;
protected virtual bool VanillaProjectile { get; } = false;
protected abstract void InitAmmo();
protected sealed override void Init()
{
this.item.maxStack = 999;
this.item.consumable = true;
InitAmmo();
this.item.damage = Damages;
this.item.shoot = ItemUtils.GetIdFromName(this.Projectile, typeof(Projectile), this.VanillaProjectile);
this.item.ammo = this.Ammo;
this.item.ranged = true;
}
}
}