diff --git a/Content/Items/Weapons/Sling.cs b/Content/Items/Weapons/Sling.cs index abb61e8..0505fa8 100644 --- a/Content/Items/Weapons/Sling.cs +++ b/Content/Items/Weapons/Sling.cs @@ -1,9 +1,10 @@ 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; -using Terraria.ModLoader.Config; namespace Decimation.Content.Items.Weapons { @@ -13,12 +14,12 @@ namespace Decimation.Content.Items.Weapons protected override string ItemTooltip => "Uses pebbles and marbles as ammo"; protected override DamageType DamagesType => DamageType.Throw; protected override int Damages => 9; - protected override string AmmoName => "Pebble"; + protected override int AmmoId => ModContent.ItemType(); protected override void InitWeapon() { - item.width = 30; - item.height = 22; + item.width = 28; + item.height = 26; item.useTime = 25; item.useAnimation = 25; item.rare = Rarity.Orange.GetRarityValue(); @@ -26,6 +27,17 @@ namespace Decimation.Content.Items.Weapons item.crit = 10; item.shoot = 1; item.useTurn = false; + item.value = Item.sellPrice(copper: 12); + } + + protected override ModRecipe GetRecipe() + { + return new RecipeBuilder(this) + .WithIngredient(ItemID.Leather) + .WithIngredient(ItemID.Cobweb, 5) + .WithStation(TileID.Tables) + .WithStation(TileID.Chairs) + .Build(); } } } \ No newline at end of file diff --git a/Content/Items/Weapons/Sling.png b/Content/Items/Weapons/Sling.png index c36078b..1032f49 100644 Binary files a/Content/Items/Weapons/Sling.png and b/Content/Items/Weapons/Sling.png differ