From e1ceffac899e243527021a3a5679979a2c1e8d4e Mon Sep 17 00:00:00 2001 From: FyloZ Date: Thu, 9 Jul 2020 19:38:24 -0400 Subject: [PATCH] Updated Wooden Slingshot. --- Content/Items/Weapons/SlingshotWood.cs | 15 +++++++++------ Content/Items/Weapons/SlingshotWood.png | Bin 393 -> 412 bytes 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Content/Items/Weapons/SlingshotWood.cs b/Content/Items/Weapons/SlingshotWood.cs index eda376a..5ec6275 100644 --- a/Content/Items/Weapons/SlingshotWood.cs +++ b/Content/Items/Weapons/SlingshotWood.cs @@ -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(); 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; } } } \ No newline at end of file diff --git a/Content/Items/Weapons/SlingshotWood.png b/Content/Items/Weapons/SlingshotWood.png index 827033882e0fea5f70f5ebfa104709cb0f4a223d..e6f84b3fb5568774569e6196be0c1c8f12affdaa 100644 GIT binary patch delta 371 zcmV-(0gV2M1DpdPiBL{Q4GJ0x0000DNk~Le0000O0000W2nGNE00>^VIFTVVe*rN` zL_t(YOJh_K75LA91>AZ4ff33i3g9w_2};upz50x*y-Apxc*zIXwqVSE@s7l-j-V9MVgV0ttT2m-hTx1YTQV@kn| zJ9oes2527#P#PYV#Kr}>dJPp7e=rRTdzgCq`@qje1I$;I5(d+-c-eI12AGBcm^xoO zb1=R6&`B^2Q%8RvzyL0v96Ea!Ov6B0xI37}<#HIHUp{~VkPAQ<YiGzkPw3bNNgAk~qHx6!QBRozQ?!p+$xK zK1PRCvHH{%mi_m`LKN$_F8~-~Unb7E_jNE}G%vs^kL$5W8^}4q6xZ$t!DwE9fm#v7 z`FWm+cGIDV=YDKF7|jX*11N$BEC+{P)?~~J00Xt)+E%X7`T{>&J(w2&HUe0AW5Ljx y0-I6qOy4>@nEQ@fOAhfAjiK_i})@80000