Decimation_Mod/Content/Items/Weapons/DuneWyrm/Timekeeper.cs
FyloZ e2e8537a01 Added the Timekeeper (WIP).
- The double helix pattern is broken at some rotation.
 - The bullet sometimes get killed for no reason.
2020-06-30 14:11:05 -04:00

41 lines
1.2 KiB
C#

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<Projectiles.DuneWyrm.Timekeeper>();
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;
}
}
}