Join CIINIT and CIMES character profiles

This commit is contained in:
gamer147
2026-07-23 17:57:21 -04:00
parent e84f61d670
commit 29aa9a4da5
13 changed files with 318 additions and 39 deletions

View File

@@ -18,6 +18,7 @@ Usage:
py -3.11 -X utf8 tools/extract_message_table.py SKMES [OUTNAME]
py -3.11 -X utf8 tools/extract_message_table.py VIMES
py -3.11 -X utf8 tools/extract_message_table.py EIMES
py -3.11 -X utf8 tools/extract_message_table.py CIMES
"""
from __future__ import annotations
@@ -38,6 +39,7 @@ T_GLOBAL_INT = 3
BRANCH_SENTINEL = 0xFFFFFFFF
MESSAGE_LAYOUTS = {
"CIMES.BIN": "character-biography",
"EIMES.BIN": "enemy-commentary",
}
@@ -111,7 +113,11 @@ def _message_body(
lines.append("".join(fragments))
if not lines:
return None
if layout == "enemy-commentary":
if layout == "character-biography":
message = {
"biography": "\n".join(lines),
}
elif layout == "enemy-commentary":
message = {
"summary": lines[0],
"strategy": "\n".join(lines[1:]),