Commit 4e93bee
committed
internal/caravan/common.lua use trader over broker
When doing trading (i.e. the DF Trade window is open showing the two
columns), it *can* happen that you *have* a broker, but you actually
*trade* using a different unit. This can be triggered by opening
the depot building view and choosing `Anyone requested at trade`,
repeating this until some unit that is not the broker shows up to
do the trading.
When this happens, the DFHack `Select trade goods` overlay shows
different obfuscated values than the DF Trade window.
This patch fixes that case by using the trader's appraisal skill if
trading is active.1 parent 76b0f7e commit 4e93bee
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
0 commit comments