xxf packs: restore ava2items and add the locale_zh_ava2 item overlay

The 喜相逢 migration dropped ava2items from the Index, breaking the AVA2
native windows, and the 喜相逢 locale (read as locale/newcibn) lacks 456
server items, types ~270 others differently and ships a 6-column
item_scale the client rejects.

- Index: ava2items after uiloading (喜相逢 files still win on a clash),
  locale_zh_ava2 before locale_zh.
- scripts/build_xxf_item_overlay.py builds locale_zh_ava2 from ava2items:
  missing/retyped item_proto, item_list, itemdesc rows, 9-column
  item_scale, item_list repairs, missing icons, wiki texts.
- migrate_to_xxf_models.py registers ava2items.
- ThinBoardCircle.SetAlpha shim for the 喜相逢 root (uiBattlePassEx).
- ENABLE_WON_EXCHANGE_WINDOW 0: it binds the cheque slot (cheque off).

Live 7511 items: not found 467 -> 0, wrong type 719 -> 37 (server proto),
no icon 6 -> 2 (31021, 31054 have none anywhere).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-23 21:12:06 +09:00
co-authored by Claude Opus 5.5
parent 60ed66692e
commit 9b2e165548
9 changed files with 258 additions and 1 deletions
@@ -1595,7 +1595,8 @@ void initapp()
PyModule_AddIntConstant(poModule, "ENABLE_VIEW_TARGET_DECIMAL_HP", 1);
PyModule_AddIntConstant(poModule, "ENABLE_VIEW_TARGET_PLAYER_HP", 1);
PyModule_AddIntConstant(poModule, "ENABLE_WINDOW_SLIDE_EFFECT", 0);
PyModule_AddIntConstant(poModule, "ENABLE_WON_EXCHANGE_WINDOW", 1);
// PORT: the Won exchange window binds the cheque slot, so it follows ENABLE_CHEQUE_SYSTEM (off).
PyModule_AddIntConstant(poModule, "ENABLE_WON_EXCHANGE_WINDOW", 0);
PyModule_AddIntConstant(poModule, "BL_MOVE_COSTUME_ATTR", 1);
PyModule_AddIntConstant(poModule, "DISABLE_CHEQUE_DROP", 0);
PyModule_AddIntConstant(poModule, "NEW_678TH_SKILL_ENABLE", 1);