Devlog #15 - Improvements to the Trading System: Buying and Selling with Currency Check


Devlog Update - Improvements to the Trading System: Buying and Selling with Currency Check

We are excited to bring you another update in the game's development. Once again, we have improved the trading system, previously we allowed players to buy items from traders, now we have implemented a feature to allow players to also sell their own items to traders. In this devlog, we will explore the details of this new feature, providing you with a comprehensive overview of how players can now engage in both buying and selling with traders.

Buying and Selling Mechanics:

With the latest update, players now have the ability to sell to traders. Here's a breakdown of the mechanics involved:

Selling to Traders: In addition to buying items, players can now sell their own items to traders. When interacting with a trader, players will have the option to drag items from their inventory into the trader's inventory that they wish to sell. Currently, the entire stack of the selected item is sold in one transaction. The trader's currency and inventory is updated accordingly, and the sold items are removed from the player's inventory.

Currency Check and Visual Updates:

To ensure a smooth and realistic trading experience, our game now performs currency checks during both buying and selling. This means that before a sale is completed, the game verifies that the destination container (either the trader or the player) has sufficient currency to afford the trade. This check prevents any unauthorized or unbalanced trades from taking place.

Bug Fixes:

In our commitment to delivering a polished gaming experience, we have addressed an important bug fix:

Trader's Currency Visual Updates: We fixed an issue where the trader's currency was not visually updated during trades. With this bug resolved, players will now see the trader's currency accurately reflect the trade transactions in real-time and not only when the inventory is closed and re-opened.

Upcoming Improvements:

As we continue to enhance the trading system, there are several improvements and features on our to-do list:

  1. Displaying Player Currency: In future updates, we will implement a feature that displays the player's currency, allowing them to track their funds and know what they can or cannot buy.
  2. Quantity Selection for Selling: Currently, selling involves the entire stack of the selected item. To provide more flexibility, we plan to introduce a feature that prompts players to enter the quantity they wish to sell. This will enable more precise control over the selling process.
  3. Price Display and Confirmation: We also have plans to display the price of items when selling and provide a confirmation prompt to ensure players are aware of the transaction details before finalizing the sale.

By implementing these improvements, we aim to offer players greater control in managing their inventory and currency.


Stay tuned for future devlog updates as we continue to introduce new features, refine existing mechanics, and address any additional issues that may arise. Your support and feedback are instrumental to our progress, and we thank you for joining us on this fun journey!

Get Heavenly Merchant

Leave a comment

Log in with itch.io to leave a comment.