Keep fallback UI labels Korean
This commit is contained in:
@@ -47,7 +47,7 @@ func hydrate_deployment(deployment: Dictionary) -> Dictionary:
|
||||
unit["sprite"] = str(sprite_info.get("path", ""))
|
||||
unit["uses_enemy_sprite"] = bool(sprite_info.get("uses_enemy_sprite", false))
|
||||
unit["class_id"] = class_id
|
||||
unit["class"] = str(class_def.get("name", class_id.capitalize()))
|
||||
unit["class"] = str(class_def.get("name", _fallback_class_name(class_id)))
|
||||
unit["team"] = unit_team
|
||||
unit["pos"] = deployment.get("pos", [0, 0])
|
||||
unit["requires_joined"] = bool(deployment.get("requires_joined", false))
|
||||
@@ -194,6 +194,37 @@ func _get_dict(source: Dictionary, key) -> Dictionary:
|
||||
return {}
|
||||
|
||||
|
||||
func _fallback_class_name(class_id: String) -> String:
|
||||
match class_id.strip_edges().to_lower():
|
||||
"hero":
|
||||
return "영걸"
|
||||
"commander":
|
||||
return "도독"
|
||||
"cavalry":
|
||||
return "기병"
|
||||
"elite_cavalry":
|
||||
return "정예기병"
|
||||
"infantry":
|
||||
return "보병"
|
||||
"guard_captain":
|
||||
return "호위장"
|
||||
"warrior":
|
||||
return "무인"
|
||||
"champion":
|
||||
return "맹장"
|
||||
"archer":
|
||||
return "궁병"
|
||||
"marksman":
|
||||
return "강궁병"
|
||||
"strategist":
|
||||
return "책사"
|
||||
"military_advisor":
|
||||
return "군사"
|
||||
"bandit":
|
||||
return "산적"
|
||||
return "부대"
|
||||
|
||||
|
||||
func _normalized_speaker_name(value: String) -> String:
|
||||
return value.strip_edges().to_lower()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user