Devlog #14 - Improved Purchasing from Traders | Quantity Support


Devlog Update - Improved Purchasing from Traders | Quantity Support

We are excited to bring you another major update in our game development journey: the expansion of item trading mechanics to include quantity support. In this devlog, we will delve into the details of this new feature, providing you with a comprehensive overview of how players can now purchase items from traders in varying quantities.

Item Trading with Quantity Support:

With the latest update, players can now specify the quantity of items they wish to purchase from traders. This addition opens up new possibilities and adds depth to the trading system, allowing for more strategic decision-making and resource management. Here's how it works:

  1. Quantity Selection: As mentioned in the previous devlog, when a player interacts with a trader, players will be presented with that trader's inventory displaying the available items and their corresponding quantities and prices. By right-clicking on the item slot in the trader's inventory the trade menu appears at the mouse's location, the trade menu's second button of "Buy Quantity input can then be pressed which displays a text inputter underneath  the trade menu, the player can then enter in the desired quantity for each item they intend to purchase providing there is that many in the slot. If the player inputs something other than an integer nothing happens and the trade menu is closed.
  2. Sufficient Currency Check: As players select the desired quantities, the game performs a currency check to ensure that they have enough currency to complete the purchase, the item's buy price is multiplied by the quantity entered by the player. If the player has sufficient currency, the purchase can proceed smoothly. In case of insufficient funds, a message will be displayed, indicating that the player cannot afford the selected quantity of the item.
  3. Transaction Completion: If the player has sufficient currency requirements, the specified quantity of the item is removed from the trader's inventory and added to the player's inventory. This new feature allows players to acquire multiple items in a single transaction, allowing for a much quicker trade process.

Trading Efficiency:

The introduction of letting players enter a quantity to purchase items enriches the gameplay experience, enabling players to purchase items quicker and more effectively. Here's how it enhances strategic gameplay:

Trading Efficiency: This feature eliminates the need for multiple transactions for the same item allowing the player to purchase items quicker and continue what they were intending on doing.

Bug Fixes:

Alongside the exciting addition of quantity support in item trading, we have also addressed some important bug fixes to ensure a smooth and enjoyable gaming experience:

  1. Fixed Purchase Logic: Previously, there were issues with the purchasing logic that resulted in incorrect quantities being added or inconsistencies in the transaction process. We have rectified these issues, ensuring accurate item quantity adjustments during the trading process.
  2. Currency Deduction: There was a bug where the currency deduction did not align with the selected item quantities. We have resolved this issue, ensuring that the correct amount of currency is deducted based on the specified item quantities.

In conclusion, the addition of quantity support in item trading marks a significant advancement in our game's mechanics. Players can now purchase items in varying quantities which allows for more effective trading.

Stay tuned for future devlog updates as we continue to introduce new features, refine existing mechanics, and address any additional issues that may arise. Thank you for joining us on this great journey!

Get Heavenly Merchant

Leave a comment

Log in with itch.io to leave a comment.