44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using Decimation.Content.Items.Ammo;
|
|
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util;
|
|
using Decimation.Lib.Util.Builder;
|
|
using Terraria;
|
|
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 int AmmoId => ModContent.ItemType<Pebble>();
|
|
|
|
protected override void InitWeapon()
|
|
{
|
|
item.width = 24;
|
|
item.height = 32;
|
|
item.useTime = 16;
|
|
item.useAnimation = 16;
|
|
item.useStyle = 5;
|
|
item.shoot = 1;
|
|
item.rare = Rarity.Orange.GetRarityValue();
|
|
item.value = Item.sellPrice(silver: 1);
|
|
item.UseSound = SoundID.Item5;
|
|
item.shootSpeed = 5f;
|
|
item.crit = 10;
|
|
item.useTurn = false;
|
|
}
|
|
|
|
protected override ModRecipe GetRecipe()
|
|
{
|
|
return new RecipeBuilder(this)
|
|
.WithIngredient(ItemID.Wood, 12)
|
|
.WithStation(TileID.WorkBenches)
|
|
.Build();
|
|
// recipe.AddIngredient(null,"CrimsoniteBar", 10);
|
|
}
|
|
}
|
|
} |