Decimation_Mod/Content/Items/Weapons/HourHand.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

41 lines
1.3 KiB
C#

using Decimation.Lib.Items;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
namespace Decimation.Content.Items.Weapons
{
public class HourHand : DecimationWeapon
{
protected override string ItemName => "Hour Hand";
protected override string ItemTooltip => "The sands of time flow in your favor!";
protected override int Damages => 45;
protected override string Projectile => "HourHandProjectile";
protected override void InitWeapon()
{
item.width = 35;
item.height = 35;
item.useTime = 28;
item.useAnimation = 28;
item.knockBack = 5;
item.value = Item.buyPrice(gold: 1);
item.rare = 2;
item.crit = 7;
item.shootSpeed = 10f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage,
ref float knockBack)
{
if (Main.rand.NextBool()) player.AddBuff(BuffID.Swiftness, 1500);
return true;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
Lighting.AddLight(item.Center, 0f, 0f, 1f);
}
}
}