42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using Decimation.Content.Items.Ammo;
|
|
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Items.Weapons
|
|
{
|
|
internal class SlingshotWood : DecimationWeapon
|
|
{
|
|
protected override string ItemName => "Slingshot";
|
|
protected override string ItemTooltip => "Uses pebbles and marbles as ammo";
|
|
protected override DamageType DamagesType => DamageType.Ranged;
|
|
protected override int Damages => 7;
|
|
protected override string Ammo => "Pebble";
|
|
|
|
protected override void InitWeapon()
|
|
{
|
|
item.width = 32;
|
|
item.height = 32;
|
|
item.useTime = 16;
|
|
item.useAnimation = 16;
|
|
item.useStyle = 5;
|
|
item.shoot = 1;
|
|
item.rare = Rarity.Orange.GetRarityValue();
|
|
item.UseSound = SoundID.Item5;
|
|
item.shootSpeed = 5f;
|
|
item.crit = 10;
|
|
item.useTurn = false;
|
|
}
|
|
|
|
protected override ModRecipe GetRecipe()
|
|
{
|
|
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.WorkBenches);
|
|
|
|
recipe.AddIngredient(ItemID.Wood, 12);
|
|
// recipe.AddIngredient(null,"CrimsoniteBar", 10);
|
|
|
|
return recipe;
|
|
}
|
|
}
|
|
} |