Updated Wooden Slingshot.
This commit is contained in:
parent
3852419581
commit
e1ceffac89
@ -1,6 +1,8 @@
|
||||
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;
|
||||
|
||||
@ -13,16 +15,18 @@ namespace Decimation.Content.Items.Weapons
|
||||
protected override DamageType DamagesType => DamageType.Ranged;
|
||||
protected override int Damages => 7;
|
||||
protected override string AmmoName => "Pebble";
|
||||
protected override int AmmoId => ModContent.ItemType<Pebble>();
|
||||
|
||||
protected override void InitWeapon()
|
||||
{
|
||||
item.width = 32;
|
||||
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;
|
||||
@ -31,12 +35,11 @@ namespace Decimation.Content.Items.Weapons
|
||||
|
||||
protected override ModRecipe GetRecipe()
|
||||
{
|
||||
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.WorkBenches);
|
||||
|
||||
recipe.AddIngredient(ItemID.Wood, 12);
|
||||
return new RecipeBuilder(this)
|
||||
.WithIngredient(ItemID.Wood, 12)
|
||||
.WithStation(TileID.WorkBenches)
|
||||
.Build();
|
||||
// recipe.AddIngredient(null,"CrimsoniteBar", 10);
|
||||
|
||||
return recipe;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 412 B |
Loading…
Reference in New Issue
Block a user