Antique global battle language

This commit is contained in:
2026-06-19 08:44:18 +09:00
parent c98064c528
commit b73fa6adbf
17 changed files with 317 additions and 267 deletions

View File

@@ -1912,16 +1912,16 @@ func _play_log_sfx(message: String) -> void:
elif message.contains(" attacks ") or message.contains(" counterattacks ") or message.contains(" 공격 ") or message.contains(" 반격 "):
if message.contains(" for ") or message.contains("피해"):
_play_sfx("hit_heavy")
elif message.contains(" casts ") or message.contains(" 시전 "):
elif message.contains(" casts ") or message.contains(" 시전 ") or message.contains("펼쳐"):
if message.contains("restoring") or message.contains(" until ") or message.contains("회복") or message.contains("지원"):
_play_sfx("skill_cast")
else:
_play_sfx("fire_skill")
elif message.contains(" moved to ") or message.contains(" advances to ") or message.contains(" takes formation at ") or message.contains(" arrives at "):
elif message.contains(" moved to ") or message.contains(" advances to ") or message.contains(" takes formation at ") or message.contains(" arrives at ") or message.contains("진군") or message.contains("진형을 잡았다") or message.contains("압박") or message.contains("당도"):
_play_sfx("footstep")
elif message.contains(" uses ") or message.contains(" equips ") or message.contains(" 사용:") or message.contains(" 장착:") or message.contains(" 매입:") or message.contains(" 매각:") or message.begins_with("Received ") or message.begins_with("전리품:") or message.begins_with("군자금:"):
elif message.contains(" uses ") or message.contains(" equips ") or message.contains(" 사용:") or message.contains("장착") or message.contains("해제") or message.contains(" 매입:") or message.contains(" 매각:") or message.contains("군자금") or message.begins_with("Received ") or message.begins_with("전리품:"):
_play_sfx("item_pickup")
elif message.contains(" reaches Lv.") or message.contains(" promotes to ") or message.contains("공적") or message.contains("승급"):
elif message.contains("공적") or message.contains("품계") or message.contains("승급"):
_play_sfx("menu_confirm")
@@ -3410,20 +3410,20 @@ func _skill_target_preview_badge_for_cell(selected: Dictionary, target: Dictiona
if total_heal <= 0:
return _make_target_preview_badge_at("가득", "invalid", cell)
if bool(preview.get("has_area", false)):
return _make_target_preview_badge_at("+%d x%d" % [total_heal, target_count], "heal", cell)
return _make_target_preview_badge_at("+%d %d" % [total_heal, target_count], "heal", cell)
return _make_target_preview_badge_at("+%d 병력" % heal, "heal", cell)
if kind == "support":
var effect_text := str(preview.get("effect_text", "지원"))
var badge_kind := _support_preview_badge_kind(effect_text)
if bool(preview.get("has_area", false)):
return _make_target_preview_badge_at("%s x%d" % [_compact_support_preview_text(effect_text), target_count], badge_kind, cell)
return _make_target_preview_badge_at("%s %d" % [_compact_support_preview_text(effect_text), target_count], badge_kind, cell)
return _make_target_preview_badge_at(_compact_support_preview_text(effect_text), badge_kind, cell)
if bool(preview.get("has_area", false)):
var defeat_count := int(preview.get("defeat_count", 0))
if defeat_count > 0:
return _make_target_preview_badge_at("퇴각 x%d" % defeat_count, "damage", cell)
return _make_target_preview_badge_at("-%d x%d" % [int(preview.get("total_damage", 0)), target_count], "damage", cell)
return _make_target_preview_badge_at("퇴각 %d" % defeat_count, "damage", cell)
return _make_target_preview_badge_at("-%d %d" % [int(preview.get("total_damage", 0)), target_count], "damage", cell)
var result_text := "퇴각" if bool(preview.get("would_defeat", false)) else "-%d" % int(preview.get("damage", 0))
return _make_target_preview_badge_at(result_text, "damage", cell)
@@ -3688,7 +3688,7 @@ func _format_unit_focus_text(unit: Dictionary, prefix: String) -> String:
roster_mark,
control_label
])
lines.append("%s Lv.%d %s %s" % [
lines.append("%s 품계 %d %s %s" % [
_unit_team_text(str(unit.get("team", ""))),
int(unit.get("level", 1)),
_unit_class_display_name(unit),
@@ -3941,7 +3941,7 @@ func _update_cell_info() -> void:
var unit: Dictionary = summary["unit"]
if not unit.is_empty():
var control_label := " 호위" if not bool(unit.get("controllable", true)) else ""
text += "\n군기: %s%s %s Lv.%d\n%s %s 병력 %d/%d 기력 %d/%d\n병장: %s" % [
text += "\n군기: %s%s %s 품계 %d\n%s %s 병력 %d/%d 기력 %d/%d\n병장: %s" % [
unit["name"],
control_label,
_unit_team_text(str(unit["team"])),
@@ -4027,7 +4027,7 @@ func _format_skill_threat_area_text(preview: Dictionary) -> String:
var target_count := int(preview.get("target_count", 0))
if target_count <= 1:
return ""
return " x%d" % target_count
return " %d" % target_count
func _compact_name_list(names: Array[String], limit: int) -> String:
@@ -4168,7 +4168,7 @@ func _update_skill_forecast(selected: Dictionary) -> void:
]
else:
var defeat_count := int(preview.get("defeat_count", 0))
var defeat_text := " 퇴각 x%d" % defeat_count if defeat_count > 0 else ""
var defeat_text := " 퇴각 %d" % defeat_count if defeat_count > 0 else ""
var total_damage := int(preview.get("total_damage", preview.get("damage", 0)))
if not has_area:
var single_defeat_text := " 퇴각" if bool(preview.get("would_defeat", false)) else ""
@@ -4204,7 +4204,7 @@ func _update_item_forecast(selected: Dictionary) -> void:
var target := state.get_unit_at(hover_cell)
var range_text := "사거리 안" if preview["in_range"] else "사거리 밖"
var count_text := "x%d" % int(preview.get("count", 0))
var count_text := "잔량 %d" % int(preview.get("count", 0))
if target.is_empty() or not preview["valid_target"]:
forecast_label.text = "%s: %s, %s\n지목할 대상이 없습니다." % [
preview["item_name"],
@@ -4260,7 +4260,7 @@ func _update_result_panel() -> void:
result_restart_button.visible = false
if next_battle_button != null:
next_battle_button.visible = false
result_label.text = "%s 전기 완결\n현 병서는 모두 정리되었습니다.\n군자금 %dG\n새 전기를 열어 다시 진행합니다." % [
result_label.text = "%s 전기 완결\n현 병서는 모두 정리되었습니다.\n군자금 %d\n새 전기를 열어 다시 진행합니다." % [
campaign_state.campaign_title,
campaign_state.gold
]
@@ -5050,14 +5050,17 @@ func _load_scenario(scenario_id: String) -> void:
campaign_state.get_roster_overrides(),
campaign_state.get_inventory_snapshot(),
campaign_state.get_flags_snapshot(),
campaign_state.get_joined_officers_snapshot()
campaign_state.get_joined_officers_snapshot(),
campaign_state.get_scenario_title(active_scenario_id)
)
func _format_briefing_title(briefing: Dictionary) -> String:
var title := str(briefing.get("title", state.battle_name))
var title := campaign_state.get_scenario_title(active_scenario_id)
if title.is_empty():
title = campaign_state.get_scenario_title(active_scenario_id)
title = str(briefing.get("title", state.battle_name))
if title.is_empty():
title = state.battle_name
var chapter_title := campaign_state.get_chapter_title_for_scenario(active_scenario_id)
if not chapter_title.is_empty():
var chapter_position := campaign_state.get_chapter_position_for_scenario(active_scenario_id)
@@ -5079,18 +5082,20 @@ func _format_briefing_location(briefing: Dictionary) -> String:
var battle_text := _format_briefing_chapter_battle_text(briefing)
if location.is_empty():
return battle_text
return "%s - %s" % [battle_text, location]
return "%s · %s" % [battle_text, location]
if campaign_state.campaign_title.is_empty():
return location
if location.is_empty():
return campaign_state.campaign_title
return "%s - %s" % [campaign_state.campaign_title, location]
return "%s · %s" % [campaign_state.campaign_title, location]
func _format_briefing_chapter_battle_text(briefing: Dictionary) -> String:
var title := str(briefing.get("title", state.battle_name))
var title := campaign_state.get_scenario_title(active_scenario_id)
if title.is_empty():
title = campaign_state.get_scenario_title(active_scenario_id)
title = str(briefing.get("title", state.battle_name))
if title.is_empty():
title = state.battle_name
var position := campaign_state.get_scenario_position_in_chapter(active_scenario_id)
var count := campaign_state.get_scenario_count_in_chapter(active_scenario_id)
if position > 0 and count > 0:
@@ -5750,7 +5755,7 @@ func _format_camp_conversation_effects_text(conversation: Dictionary) -> String:
if item.is_empty():
continue
var count := maxi(1, int(effect.get("count", 1)))
var count_text := "" if count == 1 else " x%d" % count
var count_text := "" if count == 1 else " %d" % count
parts.append("보급 %s%s" % [_item_display_name(item_id), count_text])
if parts.is_empty():
return ""
@@ -5796,7 +5801,7 @@ func _format_camp_conversation_effect_claim_text(conversation: Dictionary) -> St
if item_id.is_empty():
continue
var count := maxi(1, int(effect.get("count", 1)))
var count_text := "" if count == 1 else " x%d" % count
var count_text := "" if count == 1 else " %d" % count
messages.append("군막 보급 수령: %s%s." % [_item_display_name(item_id), count_text])
if messages.is_empty():
return "군막 보급을 수령했습니다."
@@ -5931,7 +5936,7 @@ func _format_current_checkpoint_text() -> String:
var title := campaign_state.get_scenario_title(campaign_state.current_scenario_id)
if title.is_empty():
title = campaign_state.get_scenario_title(campaign_state.get_start_scenario_id())
return "현재 봉인: %s - %d/%d 봉인 - 군자금 %dG" % [
return "현재 봉인: %s · %d/%d 봉인 · 군자금 %d" % [
title,
campaign_state.completed_scenarios.size(),
campaign_state.get_scenario_count(),
@@ -5946,8 +5951,8 @@ func _format_manual_checkpoint_text() -> String:
var title := str(summary.get("current_scenario_title", ""))
if title.is_empty():
title = str(summary.get("current_scenario_id", "Unknown"))
var pending_suffix := " - 회의 미결" if bool(summary.get("pending_choice", false)) else ""
return "수동 봉인: %s - %d/%d 봉인 - 군자금 %dG%s" % [
var pending_suffix := " · 회의 미결" if bool(summary.get("pending_choice", false)) else ""
return "수동 봉인: %s · %d/%d 봉인 · 군자금 %d%s" % [
title,
int(summary.get("completed_count", 0)),
int(summary.get("total_count", 0)),
@@ -5961,9 +5966,9 @@ func _on_manual_save_pressed() -> void:
return
_play_ui_confirm()
if campaign_state.save_manual_game():
_on_log_added("Manual checkpoint saved.")
_on_log_added("수동 전기가 봉인되었다.")
else:
_on_log_added("Could not save manual checkpoint.")
_on_log_added("수동 전기를 봉하지 못했다.")
_rebuild_save_menu()
@@ -5972,12 +5977,12 @@ func _on_manual_load_pressed() -> void:
return
_play_ui_confirm()
if not campaign_state.load_manual_game():
_on_log_added("Could not load manual checkpoint.")
_on_log_added("수동 봉인을 열지 못했다.")
_rebuild_save_menu()
return
if log_box != null:
log_box.clear()
log_box.append_text("Manual checkpoint loaded.\n")
log_box.append_text("수동 봉인을 열었다.\n")
_reload_from_campaign_state()
@@ -6074,7 +6079,7 @@ func _format_roster_unit_button_text(unit: Dictionary) -> String:
var state_text := "출진" if bool(unit.get("deployed", true)) else "예비"
var required_text := " 필수" if bool(unit.get("required_deployment", false)) else ""
var protected_text := " 호위" if not bool(unit.get("controllable", true)) else ""
return "%s%s Lv.%d %s %s%s" % [
return "%s%s 품계 %d %s %s%s" % [
str(unit.get("name", "장수")),
protected_text,
int(unit.get("level", 1)),
@@ -6274,7 +6279,7 @@ func _find_unit_in_list(units: Array, unit_id: String) -> Dictionary:
func _format_armory_unit_button_text(unit: Dictionary) -> String:
var marker := "> " if str(unit.get("id", "")) == armory_unit_id else ""
return "%s%s Lv.%d %s" % [
return "%s%s 품계 %d %s" % [
marker,
str(unit.get("name", "장수")),
int(unit.get("level", 1)),
@@ -6319,10 +6324,10 @@ func _on_armory_unequip_pressed(slot: String) -> void:
func _save_prebattle_equipment_change() -> bool:
if campaign_state.try_save_prebattle_loadout(state.get_player_roster_snapshot(), state.get_inventory_snapshot()):
_on_log_added("Saved pre-battle equipment.")
_on_log_added("출진 병장을 고쳐 봉하였다.")
return true
_play_ui_cancel()
_on_log_added("Could not save pre-battle equipment.")
_on_log_added("출진 병장 기록을 봉하지 못했다.")
_load_scenario(active_scenario_id)
_show_briefing()
return false
@@ -6334,7 +6339,7 @@ func _rebuild_shop_menu() -> void:
_clear_shop_list()
if shop_status_label != null:
var mode_text := "매각" if shop_sell_mode else "매입"
shop_status_label.text = "%s - 군자금 %dG - %s" % [
shop_status_label.text = "%s · 군자금 %d냥 · %s" % [
mode_text,
campaign_state.gold,
_format_inventory_status_text()
@@ -6425,7 +6430,7 @@ func _add_shop_merchant_notice() -> void:
row.add_theme_constant_override("separation", 8)
shop_list.add_child(row)
row.add_child(_make_initials_badge(str(merchant.get("name", "Merchant")), SHOP_MERCHANT_BADGE_SIZE, 18))
row.add_child(_make_initials_badge(str(merchant.get("name", "야상")), SHOP_MERCHANT_BADGE_SIZE, 18))
var merchant_label := Label.new()
merchant_label.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
@@ -6447,7 +6452,7 @@ func _format_shop_merchant_notice_text(merchant: Dictionary) -> String:
if lines.is_empty():
return ""
return "%s: %s" % [
str(merchant.get("name", "Merchant")),
str(merchant.get("name", "야상")),
_join_strings(lines, " ")
]
@@ -6523,27 +6528,27 @@ func _make_shop_item_icon_panel(item_id: String, item: Dictionary) -> PanelConta
func _format_shop_buy_action_text(item_id: String, _item: Dictionary, price: int) -> String:
return "매입 %s %dG" % [_item_display_name(item_id), price]
return "매입 %s %d" % [_item_display_name(item_id), price]
func _format_shop_sell_action_text(item_id: String, _item: Dictionary, sale_price: int) -> String:
return "매각 %s %dG" % [_item_display_name(item_id), sale_price]
return "매각 %s %d" % [_item_display_name(item_id), sale_price]
func _format_shop_buy_item_detail_text(_item_id: String, item: Dictionary, price: int, owned: int, stock_limit: int = -1, remaining: int = -1) -> String:
var parts := _shop_item_common_detail_parts(item, owned)
if stock_limit >= 0:
parts.append("재고 %d/%d" % [max(0, remaining), stock_limit])
parts.append("잔량 %d/%d" % [max(0, remaining), stock_limit])
if stock_limit >= 0 and remaining <= 0:
parts.append("품절")
parts.append("매진")
elif campaign_state.gold < price:
parts.append("부족 %dG" % (price - campaign_state.gold))
parts.append("부족 %d" % (price - campaign_state.gold))
return _join_strings(parts, " · ")
func _format_shop_sell_item_detail_text(_item_id: String, item: Dictionary, _sale_price: int, owned: int) -> String:
var parts := _shop_item_common_detail_parts(item, owned)
parts.append("반값 매각")
parts.append("반값으로 넘김")
return _join_strings(parts, " · ")
@@ -6555,7 +6560,7 @@ func _shop_item_common_detail_parts(item: Dictionary, owned: int) -> Array:
var kind := str(item.get("kind", "item")).capitalize()
if not kind.is_empty():
parts.append(_item_kind_text(kind))
parts.append("보유 x%d" % owned)
parts.append("보유 %d" % owned)
return parts
@@ -6568,13 +6573,13 @@ func _format_shop_item_tooltip_text(primary_text: String, detail_text: String) -
func _format_shop_item_button_text(item_id: String, item: Dictionary, price: int, owned: int, stock_limit: int = -1, remaining: int = -1) -> String:
var unavailable := ""
if stock_limit >= 0 and remaining <= 0:
unavailable = " - 품절"
unavailable = " · 매진"
elif campaign_state.gold < price:
unavailable = " - 부족 %dG" % (price - campaign_state.gold)
unavailable = " · 부족 %d" % (price - campaign_state.gold)
var stock_text := ""
if stock_limit >= 0:
stock_text = " 재고 %d/%d" % [max(0, remaining), stock_limit]
return "%s %dG %s 보유 x%d%s%s" % [
stock_text = " 잔량 %d/%d" % [max(0, remaining), stock_limit]
return "%s %d %s 보유 %d%s%s" % [
_item_display_name(item_id),
price,
_format_shop_item_effect_text(item),
@@ -6585,7 +6590,7 @@ func _format_shop_item_button_text(item_id: String, item: Dictionary, price: int
func _format_shop_sell_item_button_text(item_id: String, item: Dictionary, sale_price: int, owned: int) -> String:
return "%s 매각 %dG %s 보유 x%d" % [
return "%s 매각 %d %s 보유 %d" % [
_item_display_name(item_id),
sale_price,
_format_shop_item_effect_text(item),
@@ -6601,7 +6606,7 @@ func _format_shop_item_effect_text(item: Dictionary) -> String:
var parts := []
var equipment_type := str(item.get("%s_type" % kind, ""))
if not equipment_type.is_empty():
parts.append(equipment_type.capitalize())
parts.append(_equipment_type_text(equipment_type))
if item.has("range"):
var range_value: Array = item.get("range", [])
if range_value.size() >= 2:
@@ -6614,7 +6619,7 @@ func _format_shop_item_effect_text(item: Dictionary) -> String:
func _item_kind_text(kind: String) -> String:
var normalized := kind.strip_edges().to_lower()
if normalized == "consumable":
return "소모"
return "소모 물자"
if normalized == "weapon":
return "무기"
if normalized == "armor":
@@ -6626,6 +6631,27 @@ func _item_kind_text(kind: String) -> String:
return kind.capitalize()
func _equipment_type_text(equipment_type: String) -> String:
var normalized := equipment_type.strip_edges().to_lower()
if normalized == "sword":
return ""
if normalized == "spear":
return ""
if normalized == "bow":
return ""
if normalized == "axe":
return ""
if normalized == "robe":
return "도포"
if normalized == "light_armor":
return "경갑"
if normalized == "heavy_armor":
return "중갑"
if normalized == "accessory":
return "보물"
return _format_identifier_label(equipment_type)
func _apply_item_button_icon(button: Button, item: Dictionary) -> void:
var icon := _load_art_texture(str(item.get("icon", "")))
if icon == null:
@@ -6647,12 +6673,12 @@ func _on_shop_item_pressed(item_id: String) -> void:
var purchased := campaign_state.get_shop_purchase_count(active_scenario_id, item_id)
if stock_limit >= 0 and purchased >= stock_limit:
_play_ui_cancel()
_on_log_added("%s 품절." % item_name)
_on_log_added("%s 매진." % item_name)
_rebuild_shop_menu()
return
if campaign_state.try_buy_item(item_id, price, active_scenario_id, stock_limit):
state.set_inventory_snapshot(campaign_state.get_inventory_snapshot())
_on_log_added("%s 매입: %dG." % [item_name, price])
_on_log_added("%s 매입: %d." % [item_name, price])
else:
_play_ui_cancel()
_on_log_added("%s 매입 실패." % item_name)
@@ -6670,7 +6696,7 @@ func _on_shop_sell_item_pressed(item_id: String) -> void:
return
if campaign_state.try_sell_item(item_id, sale_price):
state.set_inventory_snapshot(campaign_state.get_inventory_snapshot())
_on_log_added("%s 매각: %dG." % [item_name, sale_price])
_on_log_added("%s 매각: %d." % [item_name, sale_price])
else:
_play_ui_cancel()
_on_log_added("%s 매각 실패." % item_name)
@@ -6786,9 +6812,9 @@ func _format_post_battle_choice_text(choice: Dictionary) -> String:
if description.is_empty():
text = label
else:
text = "%s - %s" % [label, description]
text = "%s\n뜻: %s" % [label, description]
if not reward_text.is_empty():
text += "\n전리: %s" % reward_text
text += "\n전리: %s" % reward_text
return text
@@ -6796,7 +6822,7 @@ func _format_post_battle_choice_reward_text(choice: Dictionary) -> String:
var parts := []
var gold: int = maxi(0, int(choice.get("gold", 0)))
if gold > 0:
parts.append("+%dG" % gold)
parts.append("+%d" % gold)
if typeof(choice.get("items", [])) == TYPE_ARRAY:
var items: Array = choice.get("items", [])
if not items.is_empty():
@@ -6889,7 +6915,7 @@ func _format_battle_result_summary() -> String:
if bool(battle_result_summary.get("rewards_applied", false)):
var gold_reward := int(battle_result_summary.get("gold", 0))
if gold_reward > 0:
reward_lines.append("군자금 +%d" % gold_reward)
reward_lines.append("군자금 +%d" % gold_reward)
if item_text != "없음":
reward_lines.append("물자: %s" % item_text)
else:
@@ -6916,7 +6942,7 @@ func _format_battle_result_summary() -> String:
var next_title := str(battle_result_summary.get("next_scenario_title", ""))
if not next_title.is_empty():
next_text = "다음 행군: %s" % next_title
sections.append("전기\n 군자금: %dG\n %s\n %s" % [
sections.append("전기\n 군자금: %d\n %s\n %s" % [
campaign_state.gold,
saved_text,
next_text
@@ -7003,9 +7029,9 @@ func _format_progression_events(events) -> String:
var event_type := str(event.get("type", ""))
var unit_name := str(event.get("name", "부대"))
if event_type == "promotion":
parts.append("%s -> %s" % [unit_name, str(event.get("to_class", "승급"))])
parts.append("%s에서 %s로 승급" % [unit_name, str(event.get("to_class", "승급"))])
elif event_type == "level_up":
parts.append("%s Lv.%d" % [unit_name, int(event.get("to_level", 1))])
parts.append("%s 품계 %d" % [unit_name, int(event.get("to_level", 1))])
if hidden_count > 0:
parts.append("%d" % hidden_count)
if parts.is_empty():
@@ -7044,7 +7070,7 @@ func _format_inventory_items(inventory: Dictionary) -> String:
var parts := []
for item_id in item_ids:
var key := str(item_id)
parts.append("%s x%d" % [_item_inventory_display_name(key), int(inventory.get(key, 0))])
parts.append("%s %d" % [_item_inventory_display_name(key), int(inventory.get(key, 0))])
return _join_strings(parts, ", ")
@@ -7075,7 +7101,7 @@ func _format_inventory_by_category(inventory: Dictionary) -> String:
sections.append("잡물: %s" % _format_inventory_items(other))
if sections.is_empty():
return "없음"
return _join_strings(sections, " - ")
return _join_strings(sections, " · ")
func _format_officer_id_list(values) -> String:
@@ -7510,7 +7536,7 @@ func _format_post_move_tactic_button_text(skill_id: String, skill: Dictionary, s
func _format_post_move_item_button_text(item_id: String, item: Dictionary, count: int) -> String:
var marker := "> " if selected_item_id == item_id else ""
var item_name := _item_display_name(item_id)
return "%s%s x%d %s" % [marker, item_name, count, _format_post_move_item_effect_text(item)]
return "%s%s 잔량 %d %s" % [marker, item_name, count, _format_post_move_item_effect_text(item)]
func _format_post_move_item_effect_text(item: Dictionary) -> String:
@@ -7957,7 +7983,7 @@ func _format_tactic_effect_text(skill: Dictionary) -> String:
if not parts.is_empty():
var support_text := _join_strings(parts, ", ")
return "%s, %s" % [support_text, area_text] if not area_text.is_empty() else support_text
var power_text := "P%d" % int(skill.get("power", 0))
var power_text := "위력 %d" % int(skill.get("power", 0))
return "%s, %s" % [power_text, area_text] if not area_text.is_empty() else power_text
@@ -8151,7 +8177,7 @@ func _clear_item_list() -> void:
func _format_item_button_text(item_id: String, item: Dictionary, count: int) -> String:
var marker := "> " if selected_item_id == item_id else ""
var item_name := _item_display_name(item_id)
return "%s%s x%d %s" % [marker, item_name, count, _format_item_effect_text(item)]
return "%s%s 잔량 %d %s" % [marker, item_name, count, _format_item_effect_text(item)]
func _format_item_effect_text(item: Dictionary) -> String:
@@ -8336,7 +8362,7 @@ func _equipment_item_id(equipment: Dictionary, slot: String) -> String:
func _format_equipment_option_text(unit: Dictionary, item_id: String, item: Dictionary, count: int) -> String:
var parts := [
_item_display_name(item_id),
"x%d" % count,
"보유 %d" % count,
_format_equipment_bonus_text(item)
]
var change_text := _format_equipment_change_text(unit, item)
@@ -8442,7 +8468,7 @@ func _format_equipment_range_change_text(current_item: Dictionary, candidate_ite
return ""
if current_range.is_empty():
current_range = "-"
return "사거리 %s->%s" % [current_range, candidate_range]
return "사거리 %s에서 %s" % [current_range, candidate_range]
func _format_equipment_item_range_text(item: Dictionary) -> String: