using Decimation.Lib.Items; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Decimation.Content.Items.Weapons.DuneWyrm { public class Timekeeper : DecimationWeapon { protected override string ItemName => "The Timekeeper"; protected override int Damages => 45; protected override DamageType DamagesType => DamageType.Ranged; protected override int ProjectileId => ModContent.ProjectileType(); protected override int AmmoId => AmmoID.Bullet; protected override void InitWeapon() { item.width = 58; item.height = 22; item.useStyle = ItemUseStyleID.HoldingOut; item.useTime = 10; item.useAnimation = 10; item.crit = 6; item.shootSpeed = 10f; } public override bool ConsumeAmmo(Player player) { return !Main.rand.NextBool(10); } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { type = ProjectileId; return true; } } }