client: AVA2 conqueror level (ENABLE_CONQUEROR_LEVEL=1), revision mt20261028

- Packets: SimplePlayer/CharacterUpdate/CharAddInfo carry the conqueror level,
  GC_SUNGMA_ATTR_UPDATE stores the map's sungma requirements (net.GetSungmaAttr);
  conqueror/sungma player points, APPLY_SUNGMA_*, FLY_CONQUEROR_EXP, the Cheonun affects.
- mt_conqueror (ConquerorScript.inc): 9th skill motions per race, 9th skill in active
  slot 7 (RecvSkillLevelNew keeps 176-183 there), a conqueror board beside the status
  page with /conqueror_stat buttons, BINARY_SungMaAttr.
- locale_zh_ava2: zh skilldesc rows for 133/134/176-183.
- Wire tests follow the new sizes (SimplePlayer 68, CharacterUpdate 41, AddInfo 60).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-24 20:06:13 +09:00
co-authored by Claude Opus 5.5
parent fa6b8b68db
commit da26f52df5
23 changed files with 289 additions and 13 deletions
+6
View File
@@ -15,6 +15,8 @@ first registered pack wins, so locale_zh hides them. This pack is registered bef
icons/models an added item_list row's files that no registered pack has, from --assets (AVA2 pack_maker)
locale_game_ex.txt data/zh_40250/locale_game_ex_zh_overlay.txt in GB18030; localeinfo.py loads it after
locale/common/locale_game_ex.txt, whose Won (cheque) strings are English or wrongly ordered
skilldesc.txt 喜相逢 rows + data/zh_40250/skilldesc_conqueror_zh.txt (AVA2 conqueror skills 133/134/176-183,
which the 喜相逢 skilldesc lacks) in GB18030
Usage: scripts/build_xxf_item_overlay.py [--build build/switchbot-check] [--pack Client/pack] [--ava2items DIR]
"""
@@ -211,6 +213,9 @@ def main() -> int:
wiki = {name: data for name, data in wiki.items() if locale + name not in known}
merged["locale_game_ex.txt"] = (REPO / "data/zh_40250/locale_game_ex_zh_overlay.txt").read_text(
encoding="utf-8").replace("\n", "\r\n").encode("gb18030")
skilldesc = extract(a.pack, "locale_zh", keys, locale, lambda name: name == "skilldesc.txt")["skilldesc.txt"]
conq_rows = rows((REPO / "data/zh_40250/skilldesc_conqueror_zh.txt").read_text(encoding="utf-8").encode("gb18030"))
merged["skilldesc.txt"] = merge_rows(skilldesc, conq_rows, set(conq_rows) & rows(skilldesc).keys())
stage = tmp / "stage"
for name, data in {**merged, **wiki}.items():
(stage / locale / name).parent.mkdir(parents=True, exist_ok=True)
@@ -234,6 +239,7 @@ def main() -> int:
print(f"item_list: {len(list_rows)} rows from ava2items ({len(repaired)} repair 喜相逢 rows with absent files), "
f"{len(kept_xxf)} kept 喜相逢 (ava2items files absent)")
print(f"loose files copied in: {len(loose)}, wiki texts: {len(wiki)} (as {locale}wiki/)")
print(f"skilldesc: {len(conq_rows)} conqueror rows")
print(f"itemdesc: {len(desc_rows)} rows, item_scale: {sum(map(len, scale_rows.values()))} rows")
if missing_files:
print(f"WARNING: {len(missing_files)} items reference files in no registered pack or --assets root:")