Add officer portrait defaults

This commit is contained in:
2026-06-18 03:45:39 +09:00
parent 2166ea51ef
commit 1b264081ea
8 changed files with 73 additions and 18 deletions

View File

@@ -2492,10 +2492,14 @@ func _normalize_dialogue_line(line) -> Dictionary:
var text := str(line.get("text", ""))
if text.is_empty():
return {}
var speaker := str(line.get("speaker", ""))
var portrait := str(line.get("portrait", ""))
if portrait.is_empty():
portrait = data_catalog.get_portrait_for_speaker(speaker)
return {
"speaker": str(line.get("speaker", "")),
"speaker": speaker,
"text": text,
"portrait": str(line.get("portrait", ""))
"portrait": portrait
}
return {}