Antique battle command UI

This commit is contained in:
2026-06-19 08:06:32 +09:00
parent f883dc4366
commit 2c57438c21
4 changed files with 92 additions and 77 deletions

View File

@@ -3551,7 +3551,7 @@ func _append_target_units_progress_line(result: Array[String], unit_ids, mode: S
_append_progress_line(result, "%s %s" % [unit_name, status], pending)
return
var label := "호위 손실" if mode == "defeat" else "격파 표식"
var suffix := " (1 이상이면 패전)" if mode == "defeat" else ""
var suffix := " · 하나라도 잃으면 패전" if mode == "defeat" else ""
_append_progress_line(result, "%s %d/%d%s" % [label, defeated, total, suffix], pending)
@@ -3573,7 +3573,7 @@ func _append_target_officers_progress_line(
_append_progress_line(result, "%s %s" % [officer_name, status], pending)
return
var label := "장수 손실" if mode == "defeat" else "대상 장수 격파"
var suffix := " (1 이상이면 패전)" if mode == "defeat" else ""
var suffix := " · 하나라도 잃으면 패전" if mode == "defeat" else ""
_append_progress_line(result, "%s %d/%d%s" % [label, defeated, total, suffix], pending)
@@ -3582,7 +3582,7 @@ func _append_destination_progress_line(result: Array[String], condition: Diction
if targets.is_empty():
return
var status := "도달" if _unit_reaches_tile(condition) else "미도달"
_append_progress_line(result, "목표 지점 %s: %s" % [_format_cells(targets), status], pending)
_append_progress_line(result, "전장 표식 %s · %s" % [_format_cells(targets), status], pending)
func _append_turn_limit_progress_line(result: Array[String]) -> void:
@@ -3590,7 +3590,7 @@ func _append_turn_limit_progress_line(result: Array[String]) -> void:
if limit <= 0:
return
var turns_left: int = maxi(0, limit - turn_number + 1)
_append_progress_line(result, "남은 턴 %d" % turns_left)
_append_progress_line(result, "잔여 군령 %d" % turns_left)
func _append_after_event_progress_line(result: Array[String], event_id: String) -> void:
@@ -3606,7 +3606,7 @@ func _append_after_event_progress_line(result: Array[String], event_id: String)
elif trigger_type == "turn_start":
var target_turn := int(when.get("turn", 0))
if target_turn > 0:
_append_progress_line(result, "%d에 전공 갱신" % target_turn)
_append_progress_line(result, "%d군령에 전공 갱신" % target_turn)
func _append_event_destination_progress_line(result: Array[String], when: Dictionary) -> void:
@@ -3614,7 +3614,7 @@ func _append_event_destination_progress_line(result: Array[String], when: Dictio
if targets.is_empty():
return
var status := "도달" if _unit_reaches_tile(when) else "미도달"
_append_progress_line(result, "목표 지점 %s: %s" % [_format_cells(targets), status])
_append_progress_line(result, "전장 표식 %s · %s" % [_format_cells(targets), status])
func _append_turn_condition_progress_line(result: Array[String], condition: Dictionary, mode: String, pending := false) -> void:
@@ -3623,7 +3623,7 @@ func _append_turn_condition_progress_line(result: Array[String], condition: Dict
var limit := int(condition.get("turn", condition.get("limit", 0)))
if limit <= 0:
return
_append_progress_line(result, "남은 턴 %d" % maxi(0, limit - turn_number + 1), pending)
_append_progress_line(result, "잔여 군령 %d" % maxi(0, limit - turn_number + 1), pending)
elif condition_type == "turn_reached":
var target_turn := int(condition.get("turn", 0))
if target_turn <= 0:
@@ -3631,9 +3631,9 @@ func _append_turn_condition_progress_line(result: Array[String], condition: Dict
if mode == "defeat":
var target_team := str(condition.get("team", ""))
var limit_turn := target_turn - 1 if target_team == TEAM_PLAYER else target_turn
_append_progress_line(result, "남은 턴 %d" % maxi(0, limit_turn - turn_number + 1), pending)
_append_progress_line(result, "잔여 군령 %d" % maxi(0, limit_turn - turn_number + 1), pending)
return
_append_progress_line(result, "%d/%d" % [min(turn_number, target_turn), target_turn], pending)
_append_progress_line(result, "군령 %d/%d" % [min(turn_number, target_turn), target_turn], pending)
func _append_progress_line(result: Array[String], text: String, pending := false) -> void:
@@ -4139,15 +4139,16 @@ func _event_action_unit_ids(action: Dictionary) -> Array[String]:
func _emit_ai_target_priority_feedback(unit: Dictionary, previous_priority: int, priority: int, text: String = "") -> void:
if text.is_empty():
var unit_name := str(unit.get("name", "부대"))
if priority > previous_priority:
text = "%s is exposed to enemy focus." % str(unit.get("name", "Unit"))
text = "%s에게 적 시선이 몰립니다." % unit_name
elif priority < previous_priority:
text = "%s is less exposed to enemy focus." % str(unit.get("name", "Unit"))
text = "%s를 향한 적 시선이 느슨해집니다." % unit_name
else:
text = "%s remains an enemy priority." % str(unit.get("name", "Unit"))
text = "%s는 여전히 적의 표적입니다." % unit_name
_emit_log(text)
if bool(unit.get("alive", false)) and bool(unit.get("deployed", true)):
_emit_combat_feedback(unit, "TARGET", "priority")
_emit_combat_feedback(unit, "標的", "priority")
func _apply_objective_event(action: Dictionary) -> void:
@@ -4165,9 +4166,9 @@ func _apply_objective_event(action: Dictionary) -> void:
if not updated:
return
if action.has("victory") and not updated_victory.is_empty():
_emit_log("Objective updated: %s" % updated_victory)
_emit_log("軍令 개정: %s" % updated_victory)
if action.has("defeat") and not updated_defeat.is_empty():
_emit_log("Defeat condition updated: %s" % updated_defeat)
_emit_log("敗兆 개정: %s" % updated_defeat)
objective_updated.emit(updated_victory, updated_defeat)
_notify_changed()