31 lines
955 B
C#
31 lines
955 B
C#
using Decimation.Content.Items.Ammo;
|
|
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ModLoader.Config;
|
|
|
|
namespace Decimation.Content.Items.Weapons
|
|
{
|
|
internal class Sling : DecimationWeapon
|
|
{
|
|
protected override string ItemName => "Sling";
|
|
protected override string ItemTooltip => "Uses pebbles and marbles as ammo";
|
|
protected override DamageType DamagesType => DamageType.Throw;
|
|
protected override int Damages => 9;
|
|
protected override string Ammo => "Pebble";
|
|
|
|
protected override void InitWeapon()
|
|
{
|
|
item.width = 30;
|
|
item.height = 22;
|
|
item.useTime = 25;
|
|
item.useAnimation = 25;
|
|
item.rare = Rarity.Orange.GetRarityValue();
|
|
item.shootSpeed = 7.5f;
|
|
item.crit = 10;
|
|
item.shoot = 1;
|
|
item.useTurn = false;
|
|
}
|
|
}
|
|
} |