-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trade_ui: address small bugs #52818
trade_ui: address small bugs #52818
Conversation
Any chance this PR will fix #14619? |
If I'm reading this chain right, that dialogue option first generates a random debt with parameters defined in json here
then picks an item that can fit in the NPC's total debt, then subtracts the item's value from the debt here Cataclysm-DDA/src/npctalk_funcs.cpp Line 577 in 564d632
At the moment I don't see any way to properly remove the fake debt added in the first step, sorry. It probably requires changes to JSON processing so you'd have a single-step effect like "effect": [ { "give_equipment": [ ...paremeters here... ] } ] instead of the two steps used now.
|
Nice work! I retested the associated bugs in your branch, and can confirm:
|
Co-authored-by: Eric Pierce <[email protected]>
@wapcaplet thanks a lot for testing and tracking down these bugs! |
Summary
SUMMARY: None
Purpose of change
Address small bugs with the new
trade_ui
and remove old workarounds inherited fromtrading_window
Fixes #43239: contained liquids have negative prices
Fixes #52816: invlet and keybinding conflicts
Fixes #52817: allied NPCs still check balance before accepting
Fixes #46873:
npc_trading::trade()
can cause a segfault if window refresh is triggered while traded items are manipulatedCan't trade for, or even expand some containers (ex: zipper bag): remove
TRADER_AVOID
from all container itemsDescribe the solution
Please see individual commits. These are all small fixes.
Describe alternatives you've considered
N/A
Testing
Additional context