From e77b9ee20169da05bdd71261c0e2f6ee62fadd33 Mon Sep 17 00:00:00 2001 From: Wickedness Date: Thu, 18 Jun 2026 02:11:36 +0900 Subject: [PATCH] Add Jianye sortie scenario --- README.md | 3 +- data/campaign/campaign.json | 5 + data/scenarios/056_jianye_sortie.json | 363 ++++++++++++++++++++++++++ docs/DATA_MODEL.md | 4 +- docs/ROADMAP.md | 5 +- 5 files changed, 376 insertions(+), 4 deletions(-) create mode 100644 data/scenarios/056_jianye_sortie.json diff --git a/README.md b/README.md index 5f30aab..bac4c51 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 -- Fifty-five campaign scenarios. +- Fifty-six campaign scenarios. - Grid movement. - Unit selection. - Move, attack, wait, end turn. @@ -76,6 +76,7 @@ Godot 4 tactical RPG prototype inspired by classic turn-based Romance of the Thr - Jianye Approach consumes the Wu River Line branch flags and presses the lower Yangtze approach toward a secured route or forced Wu counterstroke. - Wu Counterstroke consumes the Jianye Approach branch flags and breaks Wu's forward answer into a held lower Yangtze route or Jianye gate pressure. - Jianye Gate consumes the Wu Counterstroke branch flags and breaks the outer gate line toward a secured gate road or forced capital sortie. +- Jianye Sortie consumes the Jianye Gate branch flags and contains the capital sortie toward a held siege road or inner-city pressure. - 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 f7ff857..832ca31 100644 --- a/data/campaign/campaign.json +++ b/data/campaign/campaign.json @@ -278,6 +278,11 @@ "id": "055_jianye_gate", "title": "Jianye Gate", "path": "res://data/scenarios/055_jianye_gate.json" + }, + { + "id": "056_jianye_sortie", + "title": "Jianye Sortie", + "path": "res://data/scenarios/056_jianye_sortie.json" } ] } diff --git a/data/scenarios/056_jianye_sortie.json b/data/scenarios/056_jianye_sortie.json new file mode 100644 index 0000000..48b568f --- /dev/null +++ b/data/scenarios/056_jianye_sortie.json @@ -0,0 +1,363 @@ +{ + "id": "056_jianye_sortie", + "name": "Jianye Sortie", + "objectives": { + "victory": "Reach the capital sortie line with Cao Cao, then defeat the Jianye sortie commander.", + "defeat": "Cao Cao is defeated or the battle reaches Turn 18." + }, + "conditions": { + "victory": { "type": "all_units_defeated", "team": "enemy", "after_event": "capital_sortie_line_reached" }, + "defeat": [ + { "type": "any_officer_defeated", "team": "player", "officer_ids": ["cao_cao"] }, + { "type": "turn_reached", "turn": 18, "team": "player" } + ] + }, + "briefing": { + "title": "Jianye Sortie", + "location": "Capital Sortie Road, Jianye, Eastern Front, 220 CE", + "lines": [ + "Jianye's outer gate line has broken, and the capital guard now tests whether Wei's army can hold the road under a sudden sortie.", + "Cao Cao advances to contain the sortie, force the defenders back, and choose whether to consolidate outside the walls or press deeper into Jianye." + ], + "conditional_lines": [ + { + "campaign_flags": { "secured_jianye_gate": true }, + "lines": [ + "Securing the Jianye gate gives Wei a firmer siege road, so the capital sortie must cross prepared shields before reaching the carts." + ] + }, + { + "campaign_flags": { "forced_capital_sortie": true }, + "lines": [ + "Forcing the capital sortie draws Wu's guard outside the walls early, but the defenders now strike with urgency instead of waiting behind stone." + ] + } + ] + }, + "shop": { + "items": [ + "bean", + "wine", + "iron_sword", + "training_spear", + "short_bow", + "hand_axe", + "war_axe", + "leather_armor", + "iron_armor" + ], + "conditional_items": [ + { + "campaign_flags": { "secured_jianye_gate": true }, + "items": ["imperial_seal"] + }, + { + "campaign_flags": { "forced_capital_sortie": 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_ch56", + "officer_id": "cao_cao", + "team": "player", + "pos": [1, 4] + }, + { + "unit_id": "guo_jia_ch56", + "officer_id": "guo_jia", + "team": "player", + "requires_joined": true, + "pos": [2, 4] + }, + { + "unit_id": "zhang_he_ch56", + "officer_id": "zhang_he", + "team": "player", + "requires_joined": true, + "pos": [2, 3] + }, + { + "unit_id": "xiahou_dun_ch56", + "officer_id": "xiahou_dun", + "team": "player", + "pos": [1, 5] + }, + { + "unit_id": "dian_wei_ch56", + "officer_id": "dian_wei", + "team": "player", + "requires_joined": true, + "pos": [2, 5] + }, + { + "unit_id": "xiahou_yuan_ch56", + "officer_id": "xiahou_yuan", + "team": "player", + "requires_joined": true, + "pos": [3, 3] + }, + { + "unit_id": "cao_ren_ch56", + "officer_id": "cao_ren", + "team": "player", + "requires_joined": true, + "pos": [3, 4] + }, + { + "unit_id": "jianye_sortie_commander", + "name": "Jianye Sortie Commander", + "class_id": "commander", + "team": "enemy", + "level": 53, + "pos": [14, 4], + "base": { "hp": 178, "mp": 86, "atk": 56, "def": 47, "int": 45, "agi": 32 } + }, + { + "unit_id": "capital_sortie_captain", + "name": "Capital Sortie Captain", + "class_id": "guard_captain", + "team": "enemy", + "level": 53, + "pos": [12, 4], + "base": { "hp": 140, "atk": 55, "def": 48 } + }, + { + "unit_id": "quan_cong_sortie_boat", + "name": "Quan Cong Sortie Boat", + "class_id": "champion", + "team": "enemy", + "move_type": "water", + "level": 53, + "pos": [4, 3], + "base": { "hp": 168, "mp": 12, "atk": 57, "def": 43, "int": 15, "agi": 39 } + }, + { + "unit_id": "capital_sortie_advisor", + "name": "Capital Sortie Advisor", + "class_id": "military_advisor", + "team": "enemy", + "level": 53, + "pos": [13, 5], + "skills": ["blaze", "great_mend"], + "base": { "hp": 126, "mp": 110, "atk": 8, "def": 34, "int": 56, "agi": 29 } + }, + { + "unit_id": "capital_sortie_spear_north", + "name": "Capital Sortie Spear", + "class_id": "infantry", + "team": "enemy", + "level": 53, + "pos": [12, 3], + "base": { "hp": 128, "atk": 54, "def": 44 } + }, + { + "unit_id": "capital_sortie_spear_south", + "name": "Capital Sortie Spear", + "class_id": "infantry", + "team": "enemy", + "level": 53, + "pos": [12, 5], + "base": { "hp": 128, "atk": 54, "def": 44 } + }, + { + "unit_id": "capital_sortie_arrow_boat", + "name": "Capital Sortie Arrow Boat", + "class_id": "marksman", + "team": "enemy", + "move_type": "water", + "level": 53, + "pos": [5, 5], + "base": { "hp": 120, "atk": 55, "def": 30, "agi": 42 } + } + ], + "events": [ + { + "id": "opening", + "once": true, + "when": { "type": "battle_start" }, + "actions": [ + { "type": "log", "text": "Jianye's capital guard sorties outside the gate to test Wei's siege road." } + ] + }, + { + "id": "opening_dialogue", + "once": true, + "when": { "type": "battle_begin" }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Cao Ren", "text": "The capital guard is outside the walls. Jianye has chosen to spend men before stone." }, + { "speaker": "Guo Jia", "text": "A sortie is courage with a door left open behind it. Close the road and it becomes a retreat." }, + { "speaker": "Cao Cao", "text": "Then hold the road. Let Jianye learn that leaving the wall does not make the field theirs." } + ] + } + ] + }, + { + "id": "secured_gate_absorbs_sortie", + "once": true, + "when": { "type": "turn_start", "team": "player", "turn": 2, "campaign_flags": { "secured_jianye_gate": true } }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Xiahou Dun", "text": "The secured gate road is holding. Their sortie must cross ground we already measured." }, + { "speaker": "Cao Cao", "text": "Measured ground makes rash courage expensive." } + ] + } + ] + }, + { + "id": "forced_sortie_commits_boats", + "once": true, + "when": { "type": "turn_start", "team": "enemy", "turn": 2, "campaign_flags": { "forced_capital_sortie": true } }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Jianye Sortie Commander", "text": "Wei forced us from the gate. Push the boats hard before their road line closes." }, + { "speaker": "Zhang He", "text": "The sortie has committed to the water as well as the road. Break either and the other panics." } + ] + }, + { + "type": "spawn_deployment", + "deployment": { + "unit_id": "wu_committed_sortie_boat", + "name": "Wu Committed Sortie Boat", + "class_id": "champion", + "team": "enemy", + "move_type": "water", + "level": 53, + "pos": [5, 3], + "base": { "hp": 118, "atk": 50, "def": 34, "agi": 40 } + } + } + ] + }, + { + "id": "turn_4_sortie_surges", + "once": true, + "when": { "type": "turn_start", "team": "enemy", "turn": 4 }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Capital Sortie Advisor", "text": "Surge now. If Wei settles here, the inner city hears their drums all night." }, + { "speaker": "Guo Jia", "text": "They know time is turning against them. Let their haste expose the seam." } + ] + } + ] + }, + { + "id": "capital_sortie_line_reached", + "once": true, + "when": { "type": "unit_reaches_tile", "team": "player", "officer_ids": ["cao_cao"], "pos": [10, 4] }, + "actions": [ + { + "type": "set_objective", + "victory": "The capital sortie line is reached. Defeat the Jianye sortie commander.", + "defeat": "Cao Cao is defeated or the battle reaches Turn 18." + }, + { + "type": "dialogue", + "lines": [ + { "speaker": "Cao Cao", "text": "This sortie line is spent ground. Break its commander and drive the capital guard back under its own gate." }, + { "speaker": "Jianye Sortie Commander", "text": "The capital has more doors than this road can threaten." } + ] + }, + { + "type": "spawn_deployments", + "deployments": [ + { + "unit_id": "capital_sortie_inner_guard", + "name": "Capital Sortie Inner Guard", + "class_id": "guard_captain", + "team": "enemy", + "level": 53, + "pos": [16, 4], + "base": { "hp": 136, "atk": 54, "def": 47 } + }, + { + "unit_id": "capital_sortie_crossbow_boat", + "name": "Capital Sortie Crossbow Boat", + "class_id": "marksman", + "team": "enemy", + "move_type": "water", + "level": 53, + "pos": [10, 1], + "base": { "hp": 112, "atk": 53, "def": 27, "agi": 41 } + } + ] + } + ] + }, + { + "id": "turn_9_sortie_falters", + "once": true, + "when": { "type": "turn_start", "team": "player", "turn": 9 }, + "actions": [ + { + "type": "dialogue", + "lines": [ + { "speaker": "Cao Ren", "text": "The sortie is faltering. Their gate is close, but their road back is thinner than before." }, + { "speaker": "Cao Cao", "text": "Then make retreat feel like pursuit and pursuit feel like judgment." } + ] + } + ] + } + ], + "rewards": { + "gold": 11000, + "items": ["bean", "wine", "iron_armor"] + }, + "post_battle_dialogue": [ + { "speaker": "Guo Jia", "text": "The capital sortie is contained. Wei can lock down the road outside Jianye, or press toward the inner city while the guard retreats in disorder." }, + { "speaker": "Cao Ren", "text": "Contain the sortie and our siege line becomes hard to break. Press inward and the defenders have no time to breathe." }, + { "speaker": "Cao Cao", "text": "A sortie defeated outside its gate leaves two victories to choose from: ground held, or fear carried inward." } + ], + "post_battle_choices": [ + { + "id": "contain_capital_sortie", + "label": "Contain Sortie", + "description": "Cao Cao contains the capital sortie and locks down the siege road outside Jianye.", + "set_flags": { "contained_capital_sortie": true, "pressed_inner_jianye": false }, + "gold": 2050, + "items": ["imperial_seal"] + }, + { + "id": "press_inner_jianye", + "label": "Press Inner City", + "description": "Cao Cao presses inward before Jianye's capital guard can reorganize.", + "set_flags": { "contained_capital_sortie": false, "pressed_inner_jianye": true }, + "gold": 1850, + "items": ["war_drum"] + } + ] +} diff --git a/docs/DATA_MODEL.md b/docs/DATA_MODEL.md index b670857..b175059 100644 --- a/docs/DATA_MODEL.md +++ b/docs/DATA_MODEL.md @@ -66,6 +66,7 @@ data/scenarios/052_wu_river_line.json data/scenarios/053_jianye_approach.json data/scenarios/054_wu_counterstroke.json data/scenarios/055_jianye_gate.json +data/scenarios/056_jianye_sortie.json ``` ## Campaign @@ -133,7 +134,8 @@ The campaign file defines scenario order, resource paths, and officers who are a { "id": "052_wu_river_line", "title": "Wu River Line", "path": "res://data/scenarios/052_wu_river_line.json" }, { "id": "053_jianye_approach", "title": "Jianye Approach", "path": "res://data/scenarios/053_jianye_approach.json" }, { "id": "054_wu_counterstroke", "title": "Wu Counterstroke", "path": "res://data/scenarios/054_wu_counterstroke.json" }, - { "id": "055_jianye_gate", "title": "Jianye Gate", "path": "res://data/scenarios/055_jianye_gate.json" } + { "id": "055_jianye_gate", "title": "Jianye Gate", "path": "res://data/scenarios/055_jianye_gate.json" }, + { "id": "056_jianye_sortie", "title": "Jianye Sortie", "path": "res://data/scenarios/056_jianye_sortie.json" } ] } ``` diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 7f0b090..80a6dfb 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 fifty-five-scenario campaign. +- Next-battle flow exists across the current fifty-six-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 fifty-five-scenario campaign order exists. +- Linear fifty-six-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. @@ -115,6 +115,7 @@ - Fifty-third-scenario content exists with Jianye approach pressure, water-move counterboats, Ruxu fleet or Jianye-pressure branch reactions, and secured approach or Wu counterstroke follow-up flags. - Fifty-fourth-scenario content exists with Wu counterstroke pressure, water-move counterboats, secured approach or forced-counterstroke branch reactions, and lower Yangtze route or Jianye gate follow-up flags. - Fifty-fifth-scenario content exists with Jianye gate pressure, water-move sortie boats, lower Yangtze route or gate-pressure branch reactions, and secured gate or capital sortie follow-up flags. +- Fifty-sixth-scenario content exists with Jianye sortie pressure, water-move committed boats, secured gate or forced-sortie branch reactions, and contained sortie or inner Jianye follow-up flags. ## Milestone 5: Presentation