Decimation_Mod/Content/Items/Weapons/Bloodshot/BloodStream.cs
2020-06-30 15:25:24 -04:00

45 lines
1.5 KiB
C#

using Decimation.Content.Buffs.Debuffs;
using Decimation.Content.Projectiles;
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 int ProjectileId => ModContent.ProjectileType<BloodBeamFriendly>();
protected override void InitWeapon()
{
item.width = 28;
item.height = 28;
item.value = Item.buyPrice(0, 2);
item.rare = Rarity.Green.GetRarityValue();
item.useStyle = 5;
item.shootSpeed = 7f;
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);
}
}
}