Posted May 20, 2023 by David Slavinschii
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.
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.
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.
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.
As we continue to enhance the trading system, there are several improvements and features on our to-do list:
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!