client: AVA2 Won (cheque) system, revision mt20261027

ENABLE_CHEQUE_SYSTEM / ENABLE_WON_EXCHANGE_WINDOW = 1: Won in trades,
private shop Won prices (int32 cheque[] after the CG_MYSHOP items), shop
item cheque prices, mt_won script fixes, zh locale_game_ex overlay staged
into locale_zh_ava2 (fixes the swapped %s/%d in WONEXCHANGE_CONFIRM_QUESTION_2).

Also zero-init every TPacketCGExchange: arg1 was uninitialised and the
HEAD server drops arg1 > UINT32_MAX, so accept/cancel/item-add were lost
and trades never completed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-24 15:30:45 +09:00
co-authored by Claude Opus 5.5
parent 909fc8f851
commit 1a4d8295ff
17 changed files with 238 additions and 217 deletions
+2 -2
View File
@@ -10,11 +10,11 @@ ROOT = Path(__file__).resolve().parents[2]
class QuiverMotionTests(unittest.TestCase):
def test_disabled_wallet_also_disables_dependent_window(self):
def test_wallet_and_dependent_window_switch_together(self):
source=(ROOT/'src/port/UserInterface/PythonApplicationModule.cpp').read_text()
for name in ('ENABLE_CHEQUE_SYSTEM','ENABLE_WON_EXCHANGE_WINDOW'):
values=re.findall(r'PyModule_AddIntConstant\(poModule,\s*"'+name+r'",\s*(\d+)\)',source)
self.assertEqual(values,['0'])
self.assertEqual(values,['1'])
def load(self, missing=None):
names = ['chr', 'chrmgr', 'pack', 'playerSettingModule']