Skip to content

Commit

Permalink
Fix item purchase logic to correctly use quantity in CoreAdvanced.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
PUNK3DAF committed Feb 14, 2025
1 parent 4839990 commit 64b7836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoreAdvanced.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private void _BuyItem(string map, int shopID, ShopItem item, int quant = 1, int
if (mainItem != null)
{
Core.DebugLogger(this);
Core.BuyItem(map, shopID, mainItem.ID, quant - Bot.Inventory.GetQuantity(mainItem.ID), shopItemID, Log: Log);
Core.BuyItem(map, shopID, mainItem.ID, quant, shopItemID, Log: Log);
Core.DebugLogger(this);
Core.Sleep();
// Check if the main item was purchased successfully
Expand Down

0 comments on commit 64b7836

Please sign in to comment.