diff --git a/README.md b/README.md index 6cf138e..a2e855d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Godot 4 tactical RPG prototype inspired by classic turn-based Romance of the Thr ## Current Slice -- Forty-three campaign scenarios. +- Forty-four campaign scenarios. - Grid movement. - Unit selection. - Move, attack, wait, end turn. @@ -64,6 +64,7 @@ Godot 4 tactical RPG prototype inspired by classic turn-based Romance of the Thr - Hanzhong Settlement consumes the Hanzhong Gate branch flags and turns the basin toward a Hanzhong garrison or Ruxu pivot. - Ruxu Advance consumes the Hanzhong Settlement branch flags and opens Ruxu bank or Sun Quan river-line follow-up choices. - Ruxu River Line consumes the Ruxu Advance branch flags and introduces water-move enemy boats along the riverbank. +- Ruxu Crossing consumes the Ruxu River Line branch flags and turns Ruxu toward an eastern crossing base or Fancheng relief. - Post-battle choices can save campaign flags that branch later briefing text, shop stock, and scenario events. - Scenario post-battle dialogue can play before the victory result panel. - Basic battle EXP, level-ups, and core first-tier class promotion routes. diff --git a/data/campaign/campaign.json b/data/campaign/campaign.json index 497df94..cbd97fb 100644 --- a/data/campaign/campaign.json +++ b/data/campaign/campaign.json @@ -218,6 +218,11 @@ "id": "043_ruxu_river_line", "title": "Ruxu River Line", "path": "res://data/scenarios/043_ruxu_river_line.json" + }, + { + "id": "044_ruxu_crossing", + "title": "Ruxu Crossing", + "path": "res://data/scenarios/044_ruxu_crossing.json" } ] } diff --git a/data/scenarios/044_ruxu_crossing.json b/data/scenarios/044_ruxu_crossing.json new file mode 100644 index 0000000..76bfc1e --- /dev/null +++ b/data/scenarios/044_ruxu_crossing.json @@ -0,0 +1,363 @@ +{ + "id": "044_ruxu_crossing", + "name": "Ruxu Crossing", + "objectives": { + "victory": "Reach the Ruxu crossing with Cao Cao, then defeat the Wu crossing guard.", + "defeat": "Cao Cao is defeated or the battle reaches Turn 18." + }, + "conditions": { + "victory": { "type": "all_units_defeated", "team": "enemy", "after_event": "ruxu_crossing_reached" }, + "defeat": [ + { "type": "any_officer_defeated", "team": "player", "officer_ids": ["cao_cao"] }, + { "type": "turn_reached", "turn": 18, "team": "player" } + ] + }, + "briefing": { + "title": "Ruxu Crossing", + "location": "Ruxu Crossing, Eastern Front, 217 CE", + "lines": [ + "Sun Quan's river line has bent, but the crossing itself remains guarded by boats, stakes, and Wu captains who know the channels.", + "Cao Cao must decide whether Ruxu becomes a lasting eastern foothold or a hard-won warning before the army turns north again." + ], + "conditional_lines": [ + { + "campaign_flags": { "anchored_ruxu_camps": true }, + "lines": [ + "Anchored Ruxu camps give Cao Cao a firmer bank, steady supply, and time to prepare the crossing under shield cover." + ] + }, + { + "campaign_flags": { "forced_ruxu_crossing": true }, + "lines": [ + "Forcing the crossing has kept Wu off balance, but Sun Quan's captains are sending boats into the current before the camp line settles." + ] + } + ] + }, + "shop": { + "items": [ + "bean", + "wine", + "iron_sword", + "training_spear", + "short_bow", + "hand_axe", + "war_axe", + "leather_armor", + "iron_armor" + ], + "conditional_items": [ + { + "campaign_flags": { "anchored_ruxu_camps": true }, + "items": ["imperial_seal"] + }, + { + "campaign_flags": { "forced_ruxu_crossing": true }, + "items": ["war_drum"] + } + ] + }, + "roster": { + "max_units": 7, + "required_officers": ["cao_cao", "guo_jia"] + }, + "formation": { + "cells": [[1, 3], [1, 4], [1, 5], [2, 2], [2, 3], [2, 4], [2, 5], [2, 6], [3, 2], [3, 3], [3, 4], [3, 5], [3, 6]] + }, + "map": { + "width": 18, + "height": 11, + "terrain": [ + "WWWWWWWWWWWWWWWWWW", + "WGGGFFWWRRWWFFGGGW", + "GGGGWWGGGGRRGGGGGG", + "GGFFWWGGRRRRGFFGGG", + "RRRRRRRRRRRRRRRRRR", + "GGFFWWGGRRRRGFFGGG", + "GGGGWWGGGGRRGGGGGG", + "GHHHWWGFFFGGFFFGGG", + "GHHHWWGGGGHHHGGGGG", + "GGGGWWGGGGHHHFFGGG", + "WWWWWWWWWWWWWWWWWW" + ] + }, + "deployments": [ + { + "unit_id": "cao_cao_ch44", + "officer_id": "cao_cao", + "team": "player", + "pos": [1, 4] + }, + { + "unit_id": "guo_jia_ch44", + "officer_id": "guo_jia", + "team": "player", + "requires_joined": true, + "pos": [2, 4] + }, + { + "unit_id": "zhang_he_ch44", + "officer_id": "zhang_he", + "team": "player", + "requires_joined": true, + "pos": [2, 3] + }, + { + "unit_id": "xiahou_dun_ch44", + "officer_id": "xiahou_dun", + "team": "player", + "pos": [1, 5] + }, + { + "unit_id": "dian_wei_ch44", + "officer_id": "dian_wei", + "team": "player", + "requires_joined": true, + "pos": [2, 5] + }, + { + "unit_id": "xiahou_yuan_ch44", + "officer_id": "xiahou_yuan", + "team": "player", + "requires_joined": true, + "pos": [3, 3] + }, + { + "unit_id": "cao_ren_ch44", + "officer_id": "cao_ren", + "team": "player", + "requires_joined": true, + "pos": [3, 4] + }, + { + "unit_id": "wu_crossing_guard", + "name": "Wu Crossing Guard", + "class_id": "commander", + "team": "enemy", + "level": 41, + "pos": [14, 4], + "base": { "hp": 138, "mp": 60, "atk": 42, "def": 34, "int": 34, "agi": 23 } + }, + { + "unit_id": "ruxu_crossing_captain", + "name": "Ruxu Crossing Captain", + "class_id": "guard_captain", + "team": "enemy", + "level": 41, + "pos": [12, 4], + "base": { "hp": 114, "atk": 42, "def": 35 } + }, + { + "unit_id": "gan_ning_current_boat", + "name": "Gan Ning Current Boat", + "class_id": "champion", + "team": "enemy", + "move_type": "water", + "level": 41, + "pos": [4, 3], + "base": { "hp": 142, "mp": 12, "atk": 44, "def": 31, "int": 13, "agi": 28 } + }, + { + "unit_id": "ruxu_crossing_advisor", + "name": "Ruxu Crossing Advisor", + "class_id": "military_advisor", + "team": "enemy", + "level": 41, + "pos": [13, 5], + "skills": ["blaze", "great_mend"], + "base": { "hp": 102, "mp": 86, "atk": 8, "def": 22, "int": 44, "agi": 21 } + }, + { + "unit_id": "ruxu_crossing_spear_north", + "name": "Ruxu Crossing Spear", + "class_id": "infantry", + "team": "enemy", + "level": 41, + "pos": [12, 3], + "base": { "hp": 104, "atk": 42, "def": 32 } + }, + { + "unit_id": "ruxu_crossing_spear_south", + "name": "Ruxu Crossing Spear", + "class_id": "infantry", + "team": "enemy", + "level": 41, + "pos": [12, 5], + "base": { "hp": 104, "atk": 42, "def": 32 } + }, + { + "unit_id": "ruxu_current_arrow_boat", + "name": "Ruxu Current Arrow Boat", + "class_id": "marksman", + "team": "enemy", + "move_type": "water", + "level": 41, + "pos": [5, 5], + "base": { "hp": 96, "atk": 43, "def": 18, "agi": 31 } + } + ], + "events": [ + { + "id": "opening", + "once": true, + "when": { "type": "battle_start" }, + "actions": [ + { "type": "log", "text": "The Ruxu crossing waits under Wu arrows as Cao Cao's army moves between staked camps and hostile channels." } + ] + }, + { + "id": "opening_dialogue", + "once": true, + "when": { "type": "battle_begin" }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Cao Ren", "text": "The bank is ours, but the crossing still belongs to the men who know the current." }, + { "speaker": "Guo Jia", "text": "Then we take away their certainty one stake, one boat, one captain at a time." }, + { "speaker": "Cao Cao", "text": "A crossing is not a road until soldiers stop fearing the water beside it." } + ] + } + ] + }, + { + "id": "anchored_camps_cover_crossing", + "once": true, + "when": { "type": "turn_start", "team": "player", "turn": 2, "campaign_flags": { "anchored_ruxu_camps": true } }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Cao Ren", "text": "The anchored camps are holding. Shield screens can cover the crossing approach." }, + { "speaker": "Cao Cao", "text": "Then the crossing begins under order, not panic." } + ] + } + ] + }, + { + "id": "forced_crossing_draws_counterboats", + "once": true, + "when": { "type": "turn_start", "team": "enemy", "turn": 2, "campaign_flags": { "forced_ruxu_crossing": true } }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Wu Crossing Guard", "text": "Cao Cao forces the crossing before his camps breathe. Counter through the side current." }, + { "speaker": "Zhang He", "text": "They are gambling on the current. We will make the shore collect the debt." } + ] + }, + { + "type": "spawn_deployment", + "deployment": { + "unit_id": "ruxu_counter_current_boat", + "name": "Ruxu Counter-Current Boat", + "class_id": "champion", + "team": "enemy", + "move_type": "water", + "level": 41, + "pos": [5, 3], + "base": { "hp": 106, "atk": 40, "def": 23, "agi": 29 } + } + } + ] + }, + { + "id": "turn_4_crossing_stakes", + "once": true, + "when": { "type": "turn_start", "team": "enemy", "turn": 4 }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Ruxu Crossing Advisor", "text": "Let their front step forward and their sides fear the boats. A crossing breaks when men look sideways." }, + { "speaker": "Guo Jia", "text": "Wu is trying to make the water louder than the command drums." } + ] + } + ] + }, + { + "id": "ruxu_crossing_reached", + "once": true, + "when": { "type": "unit_reaches_tile", "team": "player", "officer_ids": ["cao_cao"], "pos": [10, 4] }, + "actions": [ + { + "type": "set_objective", + "victory": "The Ruxu crossing is reached. Defeat the Wu crossing guard.", + "defeat": "Cao Cao is defeated or the battle reaches Turn 18." + }, + { + "type": "dialogue", + "lines": [ + { "speaker": "Cao Cao", "text": "This is the crossing. Hold it until Wu's guard has nowhere left to stand." }, + { "speaker": "Wu Crossing Guard", "text": "Ruxu's water still stands with us." } + ] + }, + { + "type": "spawn_deployments", + "deployments": [ + { + "unit_id": "crossing_halberd_guard", + "name": "Crossing Halberd Guard", + "class_id": "guard_captain", + "team": "enemy", + "level": 41, + "pos": [16, 4], + "base": { "hp": 112, "atk": 42, "def": 35 } + }, + { + "unit_id": "crossing_arrow_boat", + "name": "Crossing Arrow Boat", + "class_id": "marksman", + "team": "enemy", + "move_type": "water", + "level": 41, + "pos": [10, 1], + "base": { "hp": 90, "atk": 41, "def": 15, "agi": 30 } + } + ] + } + ] + }, + { + "id": "turn_9_crossing_holds", + "once": true, + "when": { "type": "turn_start", "team": "player", "turn": 9 }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Xiahou Dun", "text": "The crossing is holding. Their boats are circling farther from the bank." }, + { "speaker": "Cao Cao", "text": "Then the river has begun to listen. Finish the men still shouting over it." } + ] + } + ] + } + ], + "rewards": { + "gold": 8600, + "items": ["bean", "wine", "imperial_seal"] + }, + "post_battle_dialogue": [ + { "speaker": "Guo Jia", "text": "Ruxu's crossing is broken open, but victory here will grow costly if Wu keeps feeding the river line." }, + { "speaker": "Cao Ren", "text": "We can secure the crossing as an eastern base, or turn north while Wu is still counting the boats it lost." }, + { "speaker": "Cao Cao", "text": "A crossing taken is not always a crossing kept. Choose what the army carries away from Ruxu." } + ], + "post_battle_choices": [ + { + "id": "secure_ruxu_crossing", + "label": "Secure Crossing", + "description": "Cao Cao secures the Ruxu crossing as a forward eastern base against Wu.", + "set_flags": { "secured_ruxu_crossing": true, "prepared_fancheng_relief": false }, + "gold": 1450, + "items": ["imperial_seal"] + }, + { + "id": "prepare_fancheng_relief", + "label": "Prepare Fancheng", + "description": "Cao Cao turns from Ruxu to prepare relief for the northern front around Fancheng.", + "set_flags": { "secured_ruxu_crossing": false, "prepared_fancheng_relief": true }, + "gold": 1250, + "items": ["war_drum"] + } + ] +} diff --git a/docs/DATA_MODEL.md b/docs/DATA_MODEL.md index 363d257..cfb5007 100644 --- a/docs/DATA_MODEL.md +++ b/docs/DATA_MODEL.md @@ -54,6 +54,7 @@ data/scenarios/040_hanzhong_gate.json data/scenarios/041_hanzhong_settlement.json data/scenarios/042_ruxu_advance.json data/scenarios/043_ruxu_river_line.json +data/scenarios/044_ruxu_crossing.json ``` ## Campaign @@ -109,7 +110,8 @@ The campaign file defines scenario order, resource paths, and officers who are a { "id": "040_hanzhong_gate", "title": "Hanzhong Gate", "path": "res://data/scenarios/040_hanzhong_gate.json" }, { "id": "041_hanzhong_settlement", "title": "Hanzhong Settlement", "path": "res://data/scenarios/041_hanzhong_settlement.json" }, { "id": "042_ruxu_advance", "title": "Ruxu Advance", "path": "res://data/scenarios/042_ruxu_advance.json" }, - { "id": "043_ruxu_river_line", "title": "Ruxu River Line", "path": "res://data/scenarios/043_ruxu_river_line.json" } + { "id": "043_ruxu_river_line", "title": "Ruxu River Line", "path": "res://data/scenarios/043_ruxu_river_line.json" }, + { "id": "044_ruxu_crossing", "title": "Ruxu Crossing", "path": "res://data/scenarios/044_ruxu_crossing.json" } ] } ``` diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index e70051e..26722e4 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -21,7 +21,7 @@ - Destination victory conditions and objective map markers exist. - Turn-limit conditions and HUD turn-limit display exist. - Victory reward summary is visible. -- Next-battle flow exists across the current forty-three-scenario campaign. +- Next-battle flow exists across the current forty-four-scenario campaign. - Campaign completion and new-campaign reset exist. - Reward inventory can be brought into the next battle. @@ -52,7 +52,7 @@ - Party roster persistence has a first save-file skeleton. - Level, experience, and equipment persistence. - Chapter selection and save/load. -- Linear forty-three-scenario campaign order exists. +- Linear forty-four-scenario campaign order exists. - Save reset exists. - Victory rewards, consumable counts, equipment stock, and equipped gear persist. - A basic pre-battle shop with scenario-specific stock exists. Sell-back and richer item management are still planned. @@ -103,6 +103,7 @@ - Forty-first-scenario content exists with Hanzhong basin settlement, storehouse pressure, Zhang Lu submission or pacification branch reactions, and Hanzhong garrison or Ruxu pivot follow-up flags. - Forty-second-scenario content exists with Ruxu riverbank pressure, Wu vanguard resistance, Hanzhong garrison or Ruxu pivot branch reactions, and Ruxu bank or Sun Quan river-line follow-up flags. - Forty-third-scenario content exists with Ruxu river-line pressure, water-move enemy boats, Ruxu bank or Sun Quan line branch reactions, and Ruxu camp or crossing follow-up flags. +- Forty-fourth-scenario content exists with Ruxu crossing pressure, water-move counterboats, camp or forced-crossing branch reactions, and Ruxu base or Fancheng relief follow-up flags. ## Milestone 5: Presentation