Add Xuzhou breakout chapter

This commit is contained in:
2026-06-23 02:09:38 +09:00
parent 91b8abc7e3
commit 6eacee48fc
11 changed files with 739 additions and 16 deletions

View File

@@ -11,6 +11,10 @@ import {
ninthBattleMap,
ninthBattleUnits,
ninthBattleVictoryPages,
tenthBattleBonds,
tenthBattleMap,
tenthBattleUnits,
tenthBattleVictoryPages,
fifthBattleBonds,
fifthBattleMap,
fifthBattleUnits,
@@ -50,7 +54,8 @@ export type BattleScenarioId =
| 'sixth-battle-jieqiao-relief'
| 'seventh-battle-xuzhou-rescue'
| 'eighth-battle-xiaopei-supply-road'
| 'ninth-battle-xuzhou-gate-night-raid';
| 'ninth-battle-xuzhou-gate-night-raid'
| 'tenth-battle-xuzhou-breakout';
export type BattleObjectiveKind = 'defeat-leader' | 'keep-unit-alive' | 'secure-terrain' | 'quick-victory';
@@ -566,6 +571,59 @@ export const ninthBattleScenario: BattleScenarioDefinition = {
nextCampScene: 'CampScene'
};
export const tenthBattleScenario: BattleScenarioDefinition = {
id: 'tenth-battle-xuzhou-breakout',
title: '서주 탈출전',
victoryConditionLabel: '송헌 격파',
defeatConditionLabel: '유비 퇴각',
openingObjectiveLines: [
'서주는 여포에게 넘어갔고, 유비군은 성 밖으로 빠져나갈 길을 열어야 합니다. 송헌을 격파하면 추격대의 지휘가 무너집니다.',
'여포군 기병은 길을 따라 빠르게 압박하고, 성내 배반병은 숲과 마을 근처에서 퇴로를 끊으려 합니다.',
'서쪽 진영과 마을을 확보한 채 20턴 안에 돌파하면 조조 의탁으로 이어질 병력과 보급을 더 많이 보존합니다.'
],
map: tenthBattleMap,
units: tenthBattleUnits,
bonds: tenthBattleBonds,
mapTextureKey: 'battle-map-tenth',
leaderUnitId: 'xuzhou-escape-leader-song-xian',
quickVictoryTurnLimit: 20,
baseVictoryGold: 1240,
objectives: [
{
id: 'leader',
kind: 'defeat-leader',
label: '송헌 격파',
rewardGold: 760,
unitId: 'xuzhou-escape-leader-song-xian'
},
{
id: 'liu-bei',
kind: 'keep-unit-alive',
label: '유비 생존',
rewardGold: 300,
unitId: 'liu-bei'
},
{
id: 'village',
kind: 'secure-terrain',
label: '피난 마을 확보',
rewardGold: 420,
terrain: 'village'
},
{
id: 'quick',
kind: 'quick-victory',
label: '20턴 이내 돌파',
rewardGold: 340,
maxTurn: 20
}
],
defeatConditions: [{ kind: 'unit-defeated', unitId: 'liu-bei' }],
itemRewards: ['콩 4', '상처약 2', '탁주 1', '서주 피난민 보호 +1'],
victoryPages: tenthBattleVictoryPages,
nextCampScene: 'CampScene'
};
export const defaultBattleScenarioId: BattleScenarioId = firstBattleScenario.id;
export const battleScenarios: Record<BattleScenarioId, BattleScenarioDefinition> = {
@@ -577,7 +635,8 @@ export const battleScenarios: Record<BattleScenarioId, BattleScenarioDefinition>
'sixth-battle-jieqiao-relief': sixthBattleScenario,
'seventh-battle-xuzhou-rescue': seventhBattleScenario,
'eighth-battle-xiaopei-supply-road': eighthBattleScenario,
'ninth-battle-xuzhou-gate-night-raid': ninthBattleScenario
'ninth-battle-xuzhou-gate-night-raid': ninthBattleScenario,
'tenth-battle-xuzhou-breakout': tenthBattleScenario
};
export const defaultBattleScenario = battleScenarios[defaultBattleScenarioId];

View File

@@ -8,6 +8,7 @@ import {
secondBattleScenario,
seventhBattleScenario,
sixthBattleScenario,
tenthBattleScenario,
thirdBattleScenario,
type BattleScenarioId
} from './battles';
@@ -27,6 +28,8 @@ import {
seventhBattleVictoryPages,
sixthBattleIntroPages,
sixthBattleVictoryPages,
tenthBattleIntroPages,
tenthBattleVictoryPages,
thirdBattleIntroPages,
thirdBattleVictoryPages,
type StoryPage
@@ -127,12 +130,22 @@ const sortieFlows: Record<string, SortieFlow> = {
},
[ninthBattleScenario.id]: {
afterBattleId: ninthBattleScenario.id,
eyebrow: '다음 전장',
title: tenthBattleScenario.title,
description: '장비의 성급함과 여포의 야심이 맞물려 서주는 무너집니다. 성을 되찾기보다 포위망을 뚫고 다음 길을 찾는 전투가 됩니다.',
rewardHint: `예상 보상: ${tenthBattleScenario.title} 개방`,
nextBattleId: tenthBattleScenario.id,
campaignStep: 'tenth-battle',
pages: [...ninthBattleVictoryPages, ...tenthBattleIntroPages]
},
[tenthBattleScenario.id]: {
afterBattleId: tenthBattleScenario.id,
eyebrow: '다음 장 준비',
title: '서주 상실의 전조',
description: '성문은 지켰지만 여포와 서주 내부의 불씨는 더 커졌습니다. 다음 흐름은 장비의 실책과 서주 상실로 이어집니다.',
rewardHint: '다음 장: 장비의 실책과 서주 상실 준비 중',
pages: ninthBattleVictoryPages,
unavailableNotice: '서주 상실 전투는 다음 작업에서 이어집니다. 군영에서 성장과 출전 구성을 정비하십시오.'
title: '조조 의탁의 길',
description: '서주를 잃은 유비군은 살아남은 병력과 백성을 추슬러 허도로 향할 길을 찾습니다. 다음 흐름은 조조 의탁과 그 안의 긴장으로 이어집니다.',
rewardHint: '다음 장: 조조 의탁 준비 중',
pages: tenthBattleVictoryPages,
unavailableNotice: '조조 의탁 장은 다음 작업에서 이어집니다. 군영에서 성장과 출전 구성을 정비하십시오.'
}
};

View File

@@ -649,6 +649,61 @@ export const ninthBattleVictoryPages: StoryPage[] = [
}
];
export const tenthBattleIntroPages: StoryPage[] = [
{
id: 'tenth-zhang-fei-fault',
bgm: 'story-dark',
chapter: '술잔이 부른 균열',
background: 'story-liu-bei',
speaker: '장비',
portrait: 'zhangFei',
text: '조표의 잔당을 다그치던 장비는 분노를 이기지 못했다. 말 한마디, 술 한잔, 그리고 성 안의 오래된 원한이 한밤중에 다시 타올랐다.'
},
{
id: 'tenth-lu-bu-takes-xuzhou',
bgm: 'story-dark',
chapter: '빼앗긴 서주',
background: 'story-militia',
text: '여포는 성문이 흔들린 틈을 놓치지 않았다. 서주 곳곳의 수비대가 갈라졌고, 유비가 돌아왔을 때 성루의 깃발은 이미 바뀌어 있었다.'
},
{
id: 'tenth-brothers-regroup',
bgm: 'militia-theme',
chapter: '무너진 성 앞에서',
background: 'story-three-heroes',
speaker: '관우',
portrait: 'guanYu',
text: '형님, 지금 성을 되찾으려 들면 백성과 군졸을 모두 잃습니다. 익덕을 꾸짖는 일은 살아나간 뒤에 해도 늦지 않습니다.'
},
{
id: 'tenth-xuzhou-escape',
bgm: 'battle-prep',
chapter: '서주 탈출',
background: 'story-sortie',
speaker: '유비',
portrait: 'liuBei',
text: '서주는 오늘 내 손에서 떠났다. 그러나 백성과 형제와 뜻까지 잃을 수는 없다. 포위망을 뚫고 다음 길을 찾자.'
}
];
export const tenthBattleVictoryPages: StoryPage[] = [
{
id: 'tenth-victory-breakout',
bgm: 'militia-theme',
chapter: '잃고도 남은 것',
background: 'story-militia',
text: '유비군은 여포군 선봉을 뚫고 서주 외곽으로 물러났다. 성은 빼앗겼으나, 세 형제와 새로 모인 장수들의 전열은 아직 흩어지지 않았다.'
},
{
id: 'tenth-cao-cao-shadow',
bgm: 'story-dark',
chapter: '허도로 향하는 그림자',
background: 'story-liu-bei',
speaker: '간옹',
text: '현덕, 이제 서주 안에서 버티는 길은 막혔네. 조조의 휘하로 들어가는 일은 마음에 걸리지만, 살아남아 다시 뜻을 세우려면 그 길을 지나야 할 걸세.'
}
];
export const firstBattleMap: BattleMap = {
width: 20,
height: 18,
@@ -848,6 +903,12 @@ export const ninthBattleMap: BattleMap = {
terrain: createNinthBattleTerrain()
};
export const tenthBattleMap: BattleMap = {
width: 28,
height: 22,
terrain: createTenthBattleTerrain()
};
export const firstBattleUnits: UnitData[] = [
{
id: 'liu-bei',
@@ -3201,6 +3262,251 @@ export const ninthBattleUnits: UnitData[] = [
}
];
const tenthBattleAllyPositions: Record<string, { x: number; y: number }> = {
'liu-bei': { x: 3, y: 14 },
'guan-yu': { x: 4, y: 15 },
'zhang-fei': { x: 3, y: 16 },
'jian-yong': { x: 5, y: 17 },
'mi-zhu': { x: 4, y: 18 }
};
export const tenthBattleUnits: UnitData[] = [
...[...firstBattleUnits.filter((unit) => unit.faction === 'ally'), ...xuzhouRecruitUnits].map((unit) =>
placeScenarioUnit(unit, tenthBattleAllyPositions[unit.id] ?? { x: unit.x, y: unit.y })
),
{
id: 'xuzhou-escape-cavalry-a',
name: '여포군 추격기병',
faction: 'enemy',
className: '여포군 기병',
classKey: 'cavalry',
level: 11,
exp: 64,
hp: 52,
maxHp: 52,
attack: 18,
move: 5,
stats: { might: 91, intelligence: 52, leadership: 70, agility: 92, luck: 58 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 42 },
armor: { itemId: 'rebel-vest', level: 2, exp: 20 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 21,
y: 5
},
{
id: 'xuzhou-escape-cavalry-b',
name: '여포군 추격기병',
faction: 'enemy',
className: '여포군 기병',
classKey: 'cavalry',
level: 11,
exp: 66,
hp: 53,
maxHp: 53,
attack: 18,
move: 5,
stats: { might: 92, intelligence: 52, leadership: 70, agility: 93, luck: 58 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 44 },
armor: { itemId: 'rebel-vest', level: 2, exp: 20 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 23,
y: 9
},
{
id: 'xuzhou-escape-cavalry-c',
name: '여포군 추격기병',
faction: 'enemy',
className: '여포군 기병',
classKey: 'cavalry',
level: 11,
exp: 66,
hp: 53,
maxHp: 53,
attack: 18,
move: 5,
stats: { might: 92, intelligence: 53, leadership: 71, agility: 93, luck: 59 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 46 },
armor: { itemId: 'rebel-vest', level: 2, exp: 20 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 22,
y: 16
},
{
id: 'xuzhou-escape-guard-a',
name: '서주 점거병',
faction: 'enemy',
className: '여포군 보병',
classKey: 'yellowTurban',
level: 10,
exp: 62,
hp: 47,
maxHp: 47,
attack: 15,
move: 3,
stats: { might: 82, intelligence: 54, leadership: 69, agility: 63, luck: 55 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 36 },
armor: { itemId: 'lamellar-armor', level: 2, exp: 18 },
accessory: { itemId: 'yellow-scarf-charm', level: 1, exp: 0 }
},
x: 12,
y: 9
},
{
id: 'xuzhou-escape-guard-b',
name: '서주 점거병',
faction: 'enemy',
className: '여포군 보병',
classKey: 'yellowTurban',
level: 10,
exp: 62,
hp: 48,
maxHp: 48,
attack: 15,
move: 3,
stats: { might: 83, intelligence: 54, leadership: 70, agility: 64, luck: 55 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 38 },
armor: { itemId: 'lamellar-armor', level: 2, exp: 18 },
accessory: { itemId: 'yellow-scarf-charm', level: 1, exp: 0 }
},
x: 13,
y: 13
},
{
id: 'xuzhou-escape-guard-c',
name: '서주 점거병',
faction: 'enemy',
className: '여포군 보병',
classKey: 'yellowTurban',
level: 10,
exp: 64,
hp: 48,
maxHp: 48,
attack: 15,
move: 3,
stats: { might: 84, intelligence: 55, leadership: 70, agility: 64, luck: 56 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 40 },
armor: { itemId: 'lamellar-armor', level: 2, exp: 18 },
accessory: { itemId: 'yellow-scarf-charm', level: 1, exp: 0 }
},
x: 15,
y: 16
},
{
id: 'xuzhou-escape-archer-a',
name: '여포군 궁병',
faction: 'enemy',
className: '여포군 궁병',
classKey: 'archer',
level: 10,
exp: 62,
hp: 38,
maxHp: 38,
attack: 16,
move: 3,
stats: { might: 74, intelligence: 65, leadership: 63, agility: 74, luck: 56 },
equipment: {
weapon: { itemId: 'short-bow', level: 2, exp: 38 },
armor: { itemId: 'cloth-armor', level: 2, exp: 16 },
accessory: { itemId: 'wind-quiver', level: 1, exp: 0 }
},
x: 17,
y: 7
},
{
id: 'xuzhou-escape-archer-b',
name: '여포군 궁병',
faction: 'enemy',
className: '여포군 궁병',
classKey: 'archer',
level: 10,
exp: 64,
hp: 39,
maxHp: 39,
attack: 16,
move: 3,
stats: { might: 75, intelligence: 66, leadership: 64, agility: 75, luck: 56 },
equipment: {
weapon: { itemId: 'short-bow', level: 2, exp: 40 },
armor: { itemId: 'cloth-armor', level: 2, exp: 16 },
accessory: { itemId: 'wind-quiver', level: 1, exp: 0 }
},
x: 18,
y: 14
},
{
id: 'xuzhou-escape-raider-a',
name: '성내 배반병',
faction: 'enemy',
className: '성내 배반병',
classKey: 'bandit',
level: 10,
exp: 62,
hp: 43,
maxHp: 43,
attack: 16,
move: 4,
stats: { might: 84, intelligence: 52, leadership: 61, agility: 76, luck: 55 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 38 },
armor: { itemId: 'rebel-vest', level: 2, exp: 18 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 8,
y: 10
},
{
id: 'xuzhou-escape-raider-b',
name: '성내 배반병',
faction: 'enemy',
className: '성내 배반병',
classKey: 'bandit',
level: 10,
exp: 64,
hp: 44,
maxHp: 44,
attack: 16,
move: 4,
stats: { might: 85, intelligence: 52, leadership: 62, agility: 77, luck: 55 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 40 },
armor: { itemId: 'rebel-vest', level: 2, exp: 18 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 10,
y: 17
},
{
id: 'xuzhou-escape-leader-song-xian',
name: '송헌',
faction: 'enemy',
className: '여포군 선봉장',
classKey: 'rebelLeader',
level: 11,
exp: 70,
hp: 68,
maxHp: 68,
attack: 18,
move: 4,
stats: { might: 88, intelligence: 60, leadership: 84, agility: 72, luck: 58 },
equipment: {
weapon: { itemId: 'leader-axe', level: 2, exp: 42 },
armor: { itemId: 'lamellar-armor', level: 2, exp: 22 },
accessory: { itemId: 'war-manual', level: 1, exp: 0 }
},
x: 20,
y: 11
}
];
export const firstBattleBonds: BattleBond[] = [
{
id: 'liu-bei__guan-yu',
@@ -3255,6 +3561,7 @@ export const sixthBattleBonds: BattleBond[] = firstBattleBonds.map(cloneBattleBo
export const seventhBattleBonds: BattleBond[] = firstBattleBonds.map(cloneBattleBondForScenario);
export const eighthBattleBonds: BattleBond[] = [...firstBattleBonds, ...xuzhouRecruitBonds].map(cloneBattleBondForScenario);
export const ninthBattleBonds: BattleBond[] = eighthBattleBonds.map(cloneBattleBondForScenario);
export const tenthBattleBonds: BattleBond[] = ninthBattleBonds.map(cloneBattleBondForScenario);
function createEighthBattleTerrain(): TerrainType[][] {
return Array.from({ length: 22 }, (_, y) =>
@@ -3317,6 +3624,53 @@ function createNinthBattleTerrain(): TerrainType[][] {
);
}
function createTenthBattleTerrain(): TerrainType[][] {
return Array.from({ length: 22 }, (_, y) =>
Array.from({ length: 28 }, (_, x): TerrainType => {
if ((x <= 4 && y >= 14 && y <= 20) || (x >= 5 && x <= 7 && y >= 17 && y <= 20)) {
return 'camp';
}
if ((x >= 18 && x <= 25 && y >= 5 && y <= 12) || (x >= 20 && x <= 26 && y >= 13 && y <= 17)) {
return 'fort';
}
if ((x >= 6 && x <= 8 && y >= 9 && y <= 11) || (x >= 13 && x <= 14 && y >= 16 && y <= 18)) {
return 'village';
}
if ((x === 15 || x === 16) && y >= 2 && y <= 21) {
return 'river';
}
if (
(y === 15 && x >= 2 && x <= 26) ||
(x === 6 && y >= 7 && y <= 20) ||
(x === 20 && y >= 4 && y <= 18) ||
(x + y === 28 && x >= 9 && x <= 20)
) {
return 'road';
}
if (
(x <= 5 && y <= 6) ||
(x >= 7 && x <= 12 && y >= 2 && y <= 7) ||
(x >= 2 && x <= 9 && y >= 8 && y <= 13) ||
(x >= 8 && x <= 13 && y >= 18 && y <= 21)
) {
return 'forest';
}
if (
(x >= 21 && y <= 4) ||
(x >= 24 && y >= 18) ||
(x >= 10 && x <= 13 && y >= 11 && y <= 14) ||
(x <= 3 && y >= 7 && y <= 10)
) {
return 'hill';
}
if ((x >= 25 && y >= 6 && y <= 10) || (x >= 18 && x <= 20 && y <= 2)) {
return 'cliff';
}
return 'plain';
})
);
}
function placeScenarioUnit(unit: UnitData, position: { x: number; y: number }): UnitData {
return {
...cloneUnitForScenario(unit),