Describe the bug
When the dwarves have only 10 dwarfbucks to spend and the merchant is not willing to trade a single item, the AI will get stuck.
What happened
The AI got stuck on the trading screen, trying to do an impossible trade. (trade 10 dwarfbucks for 1 item costing 10 dwarfbucks, and the trader did not want to trade).
Expected behavior
When it's clear that there is only 1 item that can be traded, and the merchant does not accept it, don't try to keep trading. The trader must always end up in profit.
Visual reference
If applicable, paste in a screenshot or a Twitch clip.
Describe the bug When the dwarves have only 10 dwarfbucks to spend and the merchant is not willing to trade a single item, the AI will get stuck.
What happened The AI got stuck on the trading screen, trying to do an impossible trade. (trade 10 dwarfbucks for 1 item costing 10 dwarfbucks, and the trader did not want to trade).
Expected behavior When it's clear that there is only 1 item that can be traded, and the merchant does not accept it, don't try to keep trading. The trader must always end up in profit.
Visual reference If applicable, paste in a screenshot or a Twitch clip.
ai version:
Additional context Anything else you'd like to add?
If you have a df-ai-debug.log file, drag or paste the file into this issue.