Decimation_Mod/Content/Items/Weapons/Arachnus/Infernolizer.cs
FyloZ 884e67c5e2 Updated some potions's sprite.
Changed buy price to sell price.
2020-07-09 18:03:44 -04:00

38 lines
1.3 KiB
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
namespace Decimation.Content.Items.Weapons.Arachnus
{
internal class Infernolizer : DecimationWeapon
{
protected override string ItemName => "Infernolizer";
protected override string ItemTooltip => "Releases flares upon your foes";
protected override int Damages => 880;
protected override DamageType DamagesType => DamageType.Magic;
protected override bool VanillaProjectile => true;
protected override string ProjectileName => "HeatRay";
protected override void InitWeapon()
{
item.CloneDefaults(ItemID.HeatRay);
item.crit = 8;
item.knockBack = 6;
item.useTime = 10;
item.useAnimation = 10;
item.value = Item.sellPrice(0, 45);
item.rare = Rarity.Red.GetRarityValue();
item.shootSpeed = 15f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY,
ref int type, ref int damage, ref float knockBack)
{
Terraria.Projectile.NewProjectile(new Vector2(position.X, position.Y - 8), new Vector2(speedX, speedY),
type, damage, knockBack);
return true;
}
}
}