- Added support for animated projectiles - Refactoring - Removed useless fields - Fixed swords not dealing damages - Added Hour Hand (from Evie's PR)
44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using Decimation.Content.Buffs.Debuffs;
|
|
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Items.Weapons.Bloodshot
|
|
{
|
|
internal class BloodStream : DecimationWeapon
|
|
{
|
|
protected override string ItemName => "Blood Stream";
|
|
protected override string ItemTooltip => "Bathe your enemies in boiling blood.";
|
|
protected override DamageType DamagesType => DamageType.Magic;
|
|
protected override int Damages => 14;
|
|
protected override string Projectile => "BloodBeamFriendly";
|
|
|
|
|
|
protected override void InitWeapon()
|
|
{
|
|
item.width = 20;
|
|
item.height = 20;
|
|
item.value = Item.buyPrice(0, 2);
|
|
item.rare = Rarity.Green.GetRarityValue();
|
|
item.useStyle = 5;
|
|
item.shootSpeed = 5f;
|
|
this.item.mana = 1;
|
|
item.useTime = 5;
|
|
item.useAnimation = 5;
|
|
item.autoReuse = true;
|
|
item.UseSound = SoundID.Item34;
|
|
}
|
|
|
|
public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<Slimed>(), 300);
|
|
}
|
|
|
|
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
|
|
{
|
|
target.AddBuff(ModContent.BuffType<Slimed>(), 300);
|
|
}
|
|
}
|
|
} |