diff --git a/data/campaign/campaign.json b/data/campaign/campaign.json index 21970d2..a2678ac 100644 --- a/data/campaign/campaign.json +++ b/data/campaign/campaign.json @@ -81,7 +81,7 @@ }, { "id": "006_dingtao_counterattack", - "title": "Dingtao Counterattack", + "title": "정도 반격전", "path": "res://data/scenarios/006_dingtao_counterattack.json" }, { diff --git a/data/scenarios/006_dingtao_counterattack.json b/data/scenarios/006_dingtao_counterattack.json index dd59179..53da7e8 100644 --- a/data/scenarios/006_dingtao_counterattack.json +++ b/data/scenarios/006_dingtao_counterattack.json @@ -1,9 +1,9 @@ { "id": "006_dingtao_counterattack", - "name": "Dingtao Counterattack", + "name": "정도 반격전", "objectives": { - "victory": "Defeat Lu Bu's counterattack force.", - "defeat": "Cao Cao is defeated or the battle reaches Turn 12." + "victory": "여포의 반격군을 격파하라.", + "defeat": "조조가 퇴각하거나 제12군령에 이르면 패한다." }, "conditions": { "victory": { "type": "all_units_defeated", "team": "enemy", "after_event": "turn_3_counterattack" }, @@ -13,23 +13,23 @@ ] }, "briefing": { - "title": "Dingtao Counterattack", - "location": "Dingtao, 194 CE", + "title": "정도 반격전", + "location": "정도, 흥평 원년", "lines": [ - "After the raid at Puyang, Lu Bu moves to punish Cao Cao's army near Dingtao.", - "The field is broken by ridges and roads. Keep the line tight and blunt the cavalry charge." + "복양 야습 뒤 여포는 분노를 거두지 않고 정도 들판으로 병마를 몰아온다.", + "언덕과 길목이 전장을 가른다. 전열을 좁혀 기병의 첫 돌격을 받아내라." ], "conditional_lines": [ { "campaign_flags": { "fortified_yan_province": true }, "lines": [ - "Fortified supply roads give Cao Cao time to choose the battlefield and prepare reserves." + "연주 보급로를 굳힌 덕에 조조는 먼저 지세를 고르고 예비대를 둘 시간을 얻었다." ] }, { "campaign_flags": { "pressed_lu_bu": true }, "lines": [ - "Cao Cao's pressure has kept Lu Bu off balance, but the army enters Dingtao with little rest." + "복양을 계속 누른 탓에 여포의 기세는 흐트러졌으나, 조조군도 숨 돌릴 틈 없이 정도로 들어선다." ] } ], @@ -38,52 +38,52 @@ "id": "dingtao_countercharge_council", "group": "officer", "officer_id": "cao_cao", - "label": "Cao Cao - Countercharge", + "label": "조조 - 반격 대비", "speaker": "Cao Cao", - "summary": "Set the line before Lu Bu's cavalry reaches Dingtao.", + "summary": "여포의 기병이 정도에 닿기 전 방진을 세운다.", "lines": [ - { "speaker": "Cao Cao", "side": "left", "text": "Lu Bu answers the Puyang raid with speed. That is his habit, and habits can be prepared for." }, - { "speaker": "Cao Ren", "side": "right", "text": "The ridges will break his charge if our line does not break first. I will keep the reserves close." } + { "speaker": "Cao Cao", "side": "left", "text": "여포는 복양의 야습을 속도로 갚으려 한다. 버릇은 무서우나, 버릇은 또한 기다릴 수 있다." }, + { "speaker": "Cao Ren", "side": "right", "text": "언덕이 저들의 말발굽을 꺾을 것입니다. 우리 전열만 먼저 흔들리지 않게 예비대를 붙들겠습니다." } ] }, { "id": "dingtao_dian_wei_roadblock", "group": "officer", "officer_id": "dian_wei", - "label": "Dian Wei - Roadblock", + "label": "전위 - 길목 철벽", "speaker": "Dian Wei", - "summary": "Let Dian Wei anchor the road against Lu Bu's riders.", + "summary": "전위가 좁은 길목에서 여포의 기병을 막겠다고 나선다.", "lines": [ - { "speaker": "Dian Wei", "side": "right", "text": "A horse needs road and courage. I cannot take the horse's road away, but I can test the rider's courage." }, - { "speaker": "Xiahou Dun", "side": "left", "text": "Stand where the road narrows. If Lu Bu wants the banner, he must spend men to reach it." } + { "speaker": "Dian Wei", "side": "right", "text": "말에는 길과 담력이 필요합니다. 길은 다 빼앗지 못해도, 기수의 담력은 시험할 수 있습니다." }, + { "speaker": "Xiahou Dun", "side": "left", "text": "길이 좁아지는 곳에 서라. 여포가 군기를 원한다면 그곳에 사람을 쏟아야 할 것이다." } ] }, { "id": "dingtao_fortified_reserves", "campaign_flags": { "fortified_yan_province": true }, "group": "topic", - "label": "Fortified Reserves", - "summary": "Distribute medicine from the secured Yan Province supply road.", + "label": "연주 예비 약상", + "summary": "굳힌 보급로에서 온 의원의 약상자를 나눈다.", "lines": [ - { "speaker": "Dingtao Field Sutler", "side": "right", "text": "The fortified roads kept the physician's chest whole. I brought the clean bundle forward before the riders closed." }, - { "speaker": "Cao Cao", "side": "left", "text": "Then the choice to fortify already pays us back. Keep it near the center line." } + { "speaker": "Dingtao Field Sutler", "side": "right", "text": "굳힌 길 덕에 의원의 약상자가 무사했습니다. 기병이 덮치기 전에 깨끗한 꾸러미부터 앞으로 옮겼습니다." }, + { "speaker": "Cao Cao", "side": "left", "text": "그렇다면 보급로를 굳힌 값이 이미 돌아온 셈이다. 중앙 진영 가까이 두어라." } ], "effects": [ - { "type": "grant_item", "item_id": "panacea", "count": 1, "text": "The fortified reserves add a Panacea to the field supplies." } + { "type": "grant_item", "item_id": "panacea", "count": 1, "text": "연주 예비 약상에서 만능약 한 꾸러미를 군수에 보탰다." } ] }, { "id": "dingtao_pressed_vanguard", "campaign_flags": { "pressed_lu_bu": true }, "group": "topic", - "label": "Pressed Vanguard", - "summary": "Issue wine to the soldiers who kept pressure on Lu Bu after Puyang.", + "label": "복양 압박 선봉", + "summary": "복양 뒤 추격을 이어 간 선봉에게 술을 나눈다.", "lines": [ - { "speaker": "Xiahou Yuan", "side": "right", "text": "The vanguard has not slept enough to dream, but they still reached Dingtao before Lu Bu expected." }, - { "speaker": "Dian Wei", "side": "left", "text": "Give them wine, then give them a short order. Tired men do best when the road ahead is simple." } + { "speaker": "Xiahou Yuan", "side": "right", "text": "선봉은 꿈을 꿀 만큼도 자지 못했지만, 그래도 여포가 헤아린 때보다 먼저 정도에 닿았습니다." }, + { "speaker": "Dian Wei", "side": "left", "text": "술을 주고, 명령은 짧게 내리십시오. 지친 병사는 앞길이 단순할수록 더 세게 버팁니다." } ], "effects": [ - { "type": "grant_item", "item_id": "wine", "count": 1, "text": "The pressed vanguard adds Wine to the field supplies." } + { "type": "grant_item", "item_id": "wine", "count": 1, "text": "복양 압박 선봉이 술 한 병을 군수에 보탰다." } ] } ] @@ -111,10 +111,10 @@ } ], "merchant": { - "name": "Dingtao Field Sutler", + "name": "정도 야상", "lines": [ - "Buy before the dust rises. Once Lu Bu's riders arrive, even a good price will not stand still.", - "Fortified roads bring armor; forced marches bring drums. Either way, keep one hand free for medicine." + "먼지가 오르기 전에 사 두십시오. 여포의 기병이 닿으면 좋은 값도 말 위에서 흔들립니다.", + "굳힌 길은 갑옷을 부르고, 강행군은 북을 부릅니다. 어느 길이든 약상자 하나는 곁에 두십시오." ] } }, @@ -128,6 +128,7 @@ "map": { "width": 14, "height": 10, + "background": "res://art/backgrounds/qingzhou_village_road.png", "terrain": [ "GGGGGGGGGGGGGG", "GGGFFGGGHHGGGG", @@ -177,7 +178,7 @@ }, { "unit_id": "lu_bu_counterattack", - "name": "Lu Bu Counterattack", + "name": "여포 반격대", "class_id": "elite_cavalry", "team": "enemy", "level": 7, @@ -186,7 +187,7 @@ }, { "unit_id": "zhang_liao_pursuer", - "name": "Zhang Liao Pursuer", + "name": "장료 추격기", "class_id": "cavalry", "team": "enemy", "level": 6, @@ -195,7 +196,7 @@ }, { "unit_id": "gao_shun_line", - "name": "Gao Shun Line", + "name": "고순 방진", "class_id": "infantry", "team": "enemy", "level": 6, @@ -204,7 +205,7 @@ }, { "unit_id": "dingtao_archer", - "name": "Dingtao Archer", + "name": "정도 궁병", "class_id": "archer", "team": "enemy", "level": 6, @@ -213,7 +214,7 @@ }, { "unit_id": "dingtao_strategist", - "name": "Dingtao Strategist", + "name": "정도 책사", "class_id": "strategist", "team": "enemy", "level": 6, @@ -227,7 +228,7 @@ "once": true, "when": { "type": "battle_start" }, "actions": [ - { "type": "log", "text": "Lu Bu's counterattack sweeps toward Dingtao." } + { "type": "log", "text": "여포의 반격군이 정도 들판으로 몰려든다." } ] }, { @@ -238,9 +239,9 @@ { "type": "dialogue", "lines": [ - { "speaker": "Cao Cao", "text": "Lu Bu wants a swift decision. We deny him speed and break his vanguard." }, - { "speaker": "Dian Wei", "text": "Let the riders come. A road is narrow when I stand in it." }, - { "speaker": "Xiahou Dun", "text": "The center road is their best charge lane. We hold there, then counter." } + { "speaker": "Cao Cao", "text": "여포는 속전으로 승패를 가르려 한다. 우리는 그 속도를 빼앗고 선봉을 꺾는다." }, + { "speaker": "Dian Wei", "text": "기병이 오게 두십시오. 제가 서면 넓은 길도 좁아집니다." }, + { "speaker": "Xiahou Dun", "text": "가운데 길이 저들의 돌격로다. 그곳을 받치고, 틈이 보이면 되친다." } ] } ] @@ -253,8 +254,8 @@ { "type": "dialogue", "lines": [ - { "speaker": "Scout", "text": "The eastern riders are moving exactly where the reserve scouts predicted." }, - { "speaker": "Cao Cao", "text": "Good. Let them spend their charge against prepared ground." } + { "speaker": "Scout", "text": "동쪽 기병이 예비 척후가 짚은 길목으로 그대로 움직입니다." }, + { "speaker": "Cao Cao", "text": "좋다. 준비한 땅에 저들의 첫 기세를 묻어 버려라." } ] }, { @@ -262,7 +263,7 @@ "deployments": [ { "unit_id": "screened_lu_bu_rider", - "name": "Screened Rider", + "name": "견제 기병", "class_id": "cavalry", "team": "enemy", "level": 6, @@ -271,7 +272,7 @@ }, { "unit_id": "screened_lu_bu_archer", - "name": "Screened Archer", + "name": "견제 궁병", "class_id": "archer", "team": "enemy", "level": 6, @@ -290,8 +291,8 @@ { "type": "dialogue", "lines": [ - { "speaker": "Lu Bu", "text": "Cao Cao chased too far. Trample his tired line!" }, - { "speaker": "Dian Wei", "text": "Tired men still swing hard when cornered." } + { "speaker": "Lu Bu", "text": "조조가 너무 깊이 쫓아왔다. 지친 전열을 말발굽 아래에 묻어라!" }, + { "speaker": "Dian Wei", "text": "궁지에 몰린 지친 병사도 팔은 세게 휘두릅니다." } ] }, { @@ -299,7 +300,7 @@ "deployments": [ { "unit_id": "fierce_lu_bu_rider", - "name": "Fierce Rider", + "name": "맹공 기병", "class_id": "cavalry", "team": "enemy", "level": 6, @@ -308,7 +309,7 @@ }, { "unit_id": "fierce_lu_bu_guard", - "name": "Fierce Guard", + "name": "맹공 방패병", "class_id": "infantry", "team": "enemy", "level": 6, @@ -317,7 +318,7 @@ }, { "unit_id": "fierce_lu_bu_rider_south", - "name": "Fierce Rider", + "name": "맹공 기병", "class_id": "cavalry", "team": "enemy", "level": 6, @@ -333,11 +334,11 @@ "once": true, "when": { "type": "turn_start", "team": "enemy", "turn": 3 }, "actions": [ - { "type": "log", "text": "Lu Bu commits his second wave." }, + { "type": "log", "text": "여포가 후속 부대를 전장에 밀어 넣는다." }, { "type": "set_objective", - "victory": "Defeat Lu Bu's counterattack and every second-wave unit.", - "defeat": "Cao Cao is defeated or the battle reaches Turn 12." + "victory": "여포의 반격군과 후속 부대를 모두 격파하라.", + "defeat": "조조가 퇴각하거나 제12군령에 이르면 패한다." } ] }, @@ -349,8 +350,8 @@ { "type": "dialogue", "lines": [ - { "speaker": "Cao Cao", "text": "Their charge is spent. Now strike at the officers holding the line together." }, - { "speaker": "Xiahou Yuan", "text": "I have their archers marked. One clear shot can open the road." } + { "speaker": "Cao Cao", "text": "저들의 돌격은 꺾였다. 이제 전열을 묶고 있는 장수를 찔러라." }, + { "speaker": "Xiahou Yuan", "text": "저쪽 궁병의 위치를 잡았습니다. 한 발만 길을 열면 길목이 무너집니다." } ] } ] @@ -361,8 +362,8 @@ "items": ["bean", "wine", "war_axe"] }, "post_battle_dialogue": [ - { "speaker": "Cao Cao", "text": "Lu Bu's charge is powerful, but not invincible." }, - { "speaker": "Dian Wei", "text": "His riders bleed like anyone else." }, - { "speaker": "Xiahou Dun", "text": "Then Yan Province is not lost. We keep fighting." } + { "speaker": "Cao Cao", "text": "여포의 돌격은 거세나, 꺾지 못할 것은 아니다." }, + { "speaker": "Dian Wei", "text": "저 기병들도 피는 흘립니다." }, + { "speaker": "Xiahou Dun", "text": "그렇다면 연주는 아직 잃지 않았습니다. 계속 싸우겠습니다." } ] } diff --git a/scripts/scenes/battle_scene.gd b/scripts/scenes/battle_scene.gd index 220dcc7..4f0b1eb 100644 --- a/scripts/scenes/battle_scene.gd +++ b/scripts/scenes/battle_scene.gd @@ -116,6 +116,7 @@ const SPEAKER_DISPLAY_NAMES := { "Gao Shun": "고순", "Lu Bu": "여포", "Puyang Night Trader": "복양 야상", + "Dingtao Field Sutler": "정도 야상", "Coalition Merchant": "군막 상인", "Coalition Quartermaster": "연합 군수관", "Camp Merchant": "군막 상인", @@ -4305,6 +4306,22 @@ func _format_log_entry_text(message: String) -> String: return message +func _format_hanja_number(value: int) -> String: + if value <= 0: + return str(value) + var digits := ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"] + if value < 10: + return digits[value] + if value < 20: + var ones := value % 10 + return "十" if ones == 0 else "十%s" % digits[ones] + if value < 100: + var tens := int(value / 10) + var ones := value % 10 + return "%s十" % digits[tens] if ones == 0 else "%s十%s" % [digits[tens], digits[ones]] + return str(value) + + func _on_objective_updated(victory: String, defeat: String) -> void: var notice_lines := ["새 軍令 봉인"] if not victory.is_empty(): @@ -4585,10 +4602,13 @@ func _normalized_dialogue_lines(lines: Array) -> Array: continue var speaker := str(line.get("speaker", "")) var display_speaker := _localized_speaker_name(str(line.get("display_speaker", speaker))) + var portrait := str(line.get("portrait", "")) + if portrait.is_empty() and not speaker.strip_edges().is_empty(): + portrait = state.data_catalog.get_portrait_for_speaker(_canonical_speaker_name(speaker)) result.append({ "speaker": display_speaker, "text": text, - "portrait": str(line.get("portrait", "")), + "portrait": portrait, "side": _normalized_dialogue_side(line.get("side", "left")) }) elif typeof(line) == TYPE_STRING: @@ -4657,7 +4677,10 @@ func _render_dialogue_line() -> void: func _update_dialogue_controls() -> void: if dialogue_progress_label != null: - dialogue_progress_label.text = "죽간 %d중 %d" % [active_dialogue_lines.size(), active_dialogue_index + 1] + dialogue_progress_label.text = "죽간 %s之%s" % [ + _format_hanja_number(active_dialogue_index + 1), + _format_hanja_number(active_dialogue_lines.size()) + ] if dialogue_previous_button != null: dialogue_previous_button.disabled = active_dialogue_index <= 0 dialogue_continue_button.text = "두루마리 봉함" if active_dialogue_index >= active_dialogue_lines.size() - 1 else "뒤 죽간" @@ -5010,12 +5033,12 @@ func _format_briefing_title(briefing: Dictionary) -> String: var chapter_position := campaign_state.get_chapter_position_for_scenario(active_scenario_id) var chapter_count := campaign_state.get_chapter_count() if chapter_position > 0 and chapter_count > 0: - return "병서 %02d/%02d - %s" % [chapter_position, chapter_count, chapter_title] + return "兵書 제%s책 · %s" % [_format_hanja_number(chapter_position), chapter_title] return chapter_title var position := campaign_state.get_scenario_position(active_scenario_id) var count := campaign_state.get_scenario_count() if position > 0 and count > 0: - return "전장 %02d/%02d - %s" % [position, count, title] + return "戰場 제%s폭 · %s" % [_format_hanja_number(position), title] return title @@ -5041,7 +5064,7 @@ func _format_briefing_chapter_battle_text(briefing: Dictionary) -> String: 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: - return "전장 %02d/%02d: %s" % [position, count, title] + return "戰場 제%s폭 · %s" % [_format_hanja_number(position), title] return title @@ -5080,7 +5103,7 @@ func _format_briefing_rewards() -> String: var parts := [] var gold: int = maxi(0, int(rewards.get("gold", 0))) if gold > 0: - parts.append("%dG" % gold) + parts.append("군자금 %d냥" % gold) var items = rewards.get("items", []) if typeof(items) == TYPE_ARRAY and not items.is_empty(): var item_text := _format_reward_items(items) @@ -5119,7 +5142,7 @@ func _format_briefing_camp_overview_text(briefing: Dictionary, prep_locked: bool var location := str(briefing.get("location", "")).strip_edges() if not location.is_empty(): parts.append(location) - parts.append("군자금 %dG" % campaign_state.gold) + parts.append("군자금 %d냥" % campaign_state.gold) var talk_text := _format_briefing_talk_overview_text() if not talk_text.is_empty(): parts.append(talk_text) @@ -5170,8 +5193,8 @@ func _format_briefing_roster_overview_text() -> String: var deployed_count := state.get_deployed_player_count() var max_units := state.get_deployment_max_units() if max_units > 0: - return "출진 명부 %d/%d" % [deployed_count, max_units] - return "출진 명부 %d" % deployed_count + return "출진 명부 %d명 중 %d명" % [max_units, deployed_count] + return "출진 명부 %d명" % deployed_count func _format_briefing_formation_overview_text() -> String: @@ -5582,7 +5605,7 @@ func _format_camp_conversation_button_text(conversation: Dictionary) -> String: var effects_text := _format_camp_conversation_effects_text(conversation) if not effects_text.is_empty(): parts.append(effects_text) - return _join_strings(parts, " - ") + return _join_strings(parts, " · ") func _format_camp_conversation_row_title(conversation: Dictionary) -> String: @@ -5595,7 +5618,7 @@ func _format_camp_conversation_row_title(conversation: Dictionary) -> String: var effects_text := _format_camp_conversation_effects_text(conversation) if not effects_text.is_empty(): parts.append(effects_text) - return _join_strings(parts, " - ") + return _join_strings(parts, " · ") func _format_camp_conversation_preview_text(conversation: Dictionary) -> String: @@ -5608,7 +5631,7 @@ func _format_camp_conversation_preview_text(conversation: Dictionary) -> String: parts.append(_short_preview_text(first_text, 96)) if parts.is_empty(): return "아직 적힌 말이 없습니다." - return _join_strings(parts, " - ") + return _join_strings(parts, " · ") func _camp_conversation_group_text(group: String) -> String: diff --git a/tools/smoke_camp_conversation_rewards.gd b/tools/smoke_camp_conversation_rewards.gd index d09f8e0..d7e6308 100644 --- a/tools/smoke_camp_conversation_rewards.gd +++ b/tools/smoke_camp_conversation_rewards.gd @@ -418,7 +418,7 @@ func _check_dingtao_branch_camp_conversations(failures: Array[String]) -> void: if not base_scene._camp_conversation_by_id(DINGTAO_PRESSED_CONVERSATION_ID).is_empty(): failures.append("Dingtao pressed supplies should be hidden without pressed flag") var merchant: Dictionary = base_scene.state.get_shop_merchant() - if str(merchant.get("name", "")) != "Dingtao Field Sutler": + if str(merchant.get("name", "")) != "정도 야상": failures.append("Dingtao shop merchant name should be present") var merchant_lines: Array = merchant.get("lines", []) if merchant_lines.size() < 2: diff --git a/tools/smoke_visual_assets.gd b/tools/smoke_visual_assets.gd index a417eb1..0f05989 100644 --- a/tools/smoke_visual_assets.gd +++ b/tools/smoke_visual_assets.gd @@ -30,6 +30,11 @@ const SCENARIO_BACKGROUNDS := [ "background_path": "res://art/backgrounds/puyang_raid_camp.png", "label": "005 Puyang raid camp background" }, + { + "scenario_path": "res://data/scenarios/006_dingtao_counterattack.json", + "background_path": "res://art/backgrounds/qingzhou_village_road.png", + "label": "006 Dingtao field background" + }, { "scenario_path": "res://data/scenarios/008_wan_castle_escape.json", "background_path": "res://art/backgrounds/wan_castle_escape.png", @@ -270,7 +275,7 @@ func _check_battle_visual_data(failures: Array[String]) -> void: _check_camp_conversation(failures, dingtao_conversations[0], "dingtao_countercharge_council", "officer", "cao_cao") _check_camp_conversation(failures, dingtao_conversations[1], "dingtao_dian_wei_roadblock", "officer", "dian_wei") var dingtao_merchant := dingtao_state.get_shop_merchant() - if str(dingtao_merchant.get("name", "")) != "Dingtao Field Sutler": + if str(dingtao_merchant.get("name", "")) != "정도 야상": failures.append("006 shop should expose Dingtao merchant name") if (dingtao_merchant.get("lines", []) as Array).size() < 2: failures.append("006 shop should expose merchant flavor lines") @@ -2552,7 +2557,7 @@ func _check_scene_texture_loading(failures: Array[String]) -> void: if not merchant_notice.contains("군막 상인") or not merchant_notice.contains("길가의 물자"): failures.append("shop merchant notice should include name and flavor lines") var camp_overview := scene._format_briefing_camp_overview_text(scene.state.get_briefing(), false) - for expected in ["영천, 중평 원년", "군자금 0G", "군막 회의 · 3건", "보급 대기 1건", "군상 물품 · 2종", "출진 명부 2/2", "진형 배치 4칸", "병장고 비축"]: + for expected in ["영천, 중평 원년", "군자금 0냥", "군막 회의 · 3건", "보급 대기 1건", "군상 물품 · 2종", "출진 명부 2명 중 2명", "진형 배치 4칸", "병장고 비축"]: if not camp_overview.contains(expected): failures.append("camp overview should include %s: %s" % [expected, camp_overview]) var bean: Dictionary = scene.state.get_item_def("bean")