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

@@ -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),