- If I have more than required for any offer to fill my inventory and get a player inventory full message, then it is considered the player bought more than it can hold in his inventory.
- Shift-clicking an offer when player have plenty of required elements (100 000 coins) would lead to a freeze during multiple seconds since it would try to buy until it no more requirement is available before verifying if inventory is full. Doing so it would verify the inventory would feel instantaneous (3 000 items)
- Shift-clicking an offer that have an empty price would lead to a infinite loop since it would try to buy until it no more requirement is available (which is none) before verifying if inventory is full.
- Offer that have an empty price doesn't show an infinite symbol like with recipes without ingredients.
Code: Select all
game.createentity({name = "market", position = game.player.position})
game.player.selected.addmarketitem{price={ {} }, offer={type="give-item", item="coin"}}
game.player.selected.addmarketitem{price={ {"coin", 1} }, offer={type="give-item", item="iron-ore"}}