Add Xiaopei supply road battle

This commit is contained in:
2026-06-23 01:26:45 +09:00
parent 6b863882aa
commit 1c501057e3
11 changed files with 693 additions and 25 deletions

View File

@@ -540,6 +540,60 @@ export const seventhBattleVictoryPages: StoryPage[] = [
}
];
export const eighthBattleIntroPages: StoryPage[] = [
{
id: 'eighth-xuzhou-handover',
bgm: 'militia-theme',
chapter: '서주의 새 군영',
background: 'story-militia',
text: '도겸은 병든 몸을 일으켜 서주의 장부와 군량 창고를 유비에게 넘겼다. 간옹과 미축은 백성의 청원과 보급로를 정리하며 새 군영의 기초를 세웠다.'
},
{
id: 'eighth-lu-bu-shadow',
bgm: 'battle-prep',
chapter: '여포의 그림자',
background: 'story-liu-bei',
speaker: '유비',
portrait: 'liuBei',
text: '여포가 떠돌고 있다는 소식은 가볍지 않다. 그 이름 하나만으로도 여러 군세가 흔들린다. 그러나 지금은 서주의 길과 백성을 먼저 지켜야 한다.'
},
{
id: 'eighth-xiaopei-road',
bgm: 'battle-prep',
chapter: '소패 보급로',
background: 'story-sortie',
speaker: '미축',
text: '소패로 이어지는 창고 길목이 습격받고 있습니다. 군량이 끊기면 서주를 안정시킬 수 없습니다. 보급로와 마을을 동시에 지켜야 합니다.'
},
{
id: 'eighth-sortie-choice',
bgm: 'battle-prep',
chapter: '첫 방위전',
background: 'story-three-heroes',
speaker: '간옹',
text: '현덕, 이제 함께 갈 장수를 고르는 일도 전술이 되었네. 칼이 필요한 곳과 말이 필요한 곳, 그리고 말보다 장부가 필요한 곳을 구분해야 하네.'
}
];
export const eighthBattleVictoryPages: StoryPage[] = [
{
id: 'eighth-victory-supply-road',
bgm: 'militia-theme',
chapter: '지켜낸 보급로',
background: 'story-militia',
text: '소패의 보급로가 다시 열리자 서주의 창고와 마을은 겨우 숨을 돌렸다. 새로 합류한 장수들은 각자의 방식으로 유비군의 빈틈을 메웠다.'
},
{
id: 'eighth-lu-bu-arrival',
bgm: 'battle-prep',
chapter: '뜻밖의 손님',
background: 'story-liu-bei',
speaker: '유비',
portrait: 'liuBei',
text: '전투가 끝난 뒤, 여포가 몸을 의탁할 곳을 구한다는 전갈이 왔다. 그를 받아들이는 일은 의로울 수 있으나, 서주에 또 다른 불씨를 들이는 일이기도 했다.'
}
];
export const firstBattleMap: BattleMap = {
width: 20,
height: 18,
@@ -727,6 +781,12 @@ export const seventhBattleMap: BattleMap = {
]
};
export const eighthBattleMap: BattleMap = {
width: 26,
height: 22,
terrain: createEighthBattleTerrain()
};
export const firstBattleUnits: UnitData[] = [
{
id: 'liu-bei',
@@ -2611,6 +2671,251 @@ export const xuzhouRecruitUnits: UnitData[] = [
}
];
const eighthBattleAllyPositions: Record<string, { x: number; y: number }> = {
'liu-bei': { x: 2, y: 17 },
'guan-yu': { x: 3, y: 17 },
'zhang-fei': { x: 2, y: 18 },
'jian-yong': { x: 3, y: 18 },
'mi-zhu': { x: 1, y: 18 }
};
export const eighthBattleUnits: UnitData[] = [
...[...firstBattleUnits.filter((unit) => unit.faction === 'ally'), ...xuzhouRecruitUnits].map((unit) =>
placeScenarioUnit(unit, eighthBattleAllyPositions[unit.id] ?? { x: unit.x, y: unit.y })
),
{
id: 'xiaopei-raider-a',
name: '여포군 척후',
faction: 'enemy',
className: '기동 척후',
classKey: 'cavalry',
level: 8,
exp: 52,
hp: 43,
maxHp: 43,
attack: 15,
move: 5,
stats: { might: 82, intelligence: 50, leadership: 62, agility: 86, luck: 55 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 28 },
armor: { itemId: 'rebel-vest', level: 2, exp: 14 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 17,
y: 9
},
{
id: 'xiaopei-raider-b',
name: '여포군 척후',
faction: 'enemy',
className: '기동 척후',
classKey: 'cavalry',
level: 8,
exp: 54,
hp: 44,
maxHp: 44,
attack: 15,
move: 5,
stats: { might: 83, intelligence: 50, leadership: 62, agility: 86, luck: 55 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 30 },
armor: { itemId: 'rebel-vest', level: 2, exp: 14 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 19,
y: 10
},
{
id: 'xiaopei-infantry-a',
name: '소패 침투병',
faction: 'enemy',
className: '여포군 보병',
classKey: 'yellowTurban',
level: 8,
exp: 50,
hp: 42,
maxHp: 42,
attack: 13,
move: 3,
stats: { might: 78, intelligence: 50, leadership: 66, agility: 61, luck: 53 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 26 },
armor: { itemId: 'lamellar-armor', level: 2, exp: 12 },
accessory: { itemId: 'yellow-scarf-charm', level: 1, exp: 0 }
},
x: 11,
y: 12
},
{
id: 'xiaopei-infantry-b',
name: '소패 침투병',
faction: 'enemy',
className: '여포군 보병',
classKey: 'yellowTurban',
level: 8,
exp: 52,
hp: 43,
maxHp: 43,
attack: 13,
move: 3,
stats: { might: 79, intelligence: 50, leadership: 67, agility: 62, luck: 53 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 28 },
armor: { itemId: 'lamellar-armor', level: 2, exp: 12 },
accessory: { itemId: 'yellow-scarf-charm', level: 1, exp: 0 }
},
x: 12,
y: 14
},
{
id: 'xiaopei-archer-a',
name: '소패 궁병',
faction: 'enemy',
className: '여포군 궁병',
classKey: 'archer',
level: 8,
exp: 52,
hp: 34,
maxHp: 34,
attack: 14,
move: 3,
stats: { might: 70, intelligence: 62, leadership: 60, agility: 71, luck: 54 },
equipment: {
weapon: { itemId: 'short-bow', level: 2, exp: 28 },
armor: { itemId: 'cloth-armor', level: 2, exp: 12 },
accessory: { itemId: 'wind-quiver', level: 1, exp: 0 }
},
x: 18,
y: 7
},
{
id: 'xiaopei-archer-b',
name: '소패 궁병',
faction: 'enemy',
className: '여포군 궁병',
classKey: 'archer',
level: 9,
exp: 54,
hp: 35,
maxHp: 35,
attack: 15,
move: 3,
stats: { might: 72, intelligence: 63, leadership: 61, agility: 72, luck: 55 },
equipment: {
weapon: { itemId: 'short-bow', level: 2, exp: 30 },
armor: { itemId: 'cloth-armor', level: 2, exp: 12 },
accessory: { itemId: 'wind-quiver', level: 1, exp: 0 }
},
x: 21,
y: 14
},
{
id: 'xiaopei-guard-a',
name: '창고 습격병',
faction: 'enemy',
className: '여포군 보병',
classKey: 'bandit',
level: 8,
exp: 50,
hp: 38,
maxHp: 38,
attack: 14,
move: 4,
stats: { might: 79, intelligence: 48, leadership: 58, agility: 72, luck: 52 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 26 },
armor: { itemId: 'rebel-vest', level: 2, exp: 12 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 8,
y: 11
},
{
id: 'xiaopei-guard-b',
name: '창고 습격병',
faction: 'enemy',
className: '여포군 보병',
classKey: 'bandit',
level: 8,
exp: 52,
hp: 39,
maxHp: 39,
attack: 14,
move: 4,
stats: { might: 80, intelligence: 48, leadership: 58, agility: 73, luck: 52 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 28 },
armor: { itemId: 'rebel-vest', level: 2, exp: 12 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 9,
y: 14
},
{
id: 'xiaopei-cavalry-a',
name: '여포군 기병',
faction: 'enemy',
className: '여포군 기병',
classKey: 'cavalry',
level: 9,
exp: 56,
hp: 46,
maxHp: 46,
attack: 16,
move: 5,
stats: { might: 86, intelligence: 50, leadership: 66, agility: 88, luck: 56 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 32 },
armor: { itemId: 'rebel-vest', level: 2, exp: 16 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 23,
y: 6
},
{
id: 'xiaopei-cavalry-b',
name: '여포군 기병',
faction: 'enemy',
className: '여포군 기병',
classKey: 'cavalry',
level: 9,
exp: 58,
hp: 47,
maxHp: 47,
attack: 16,
move: 5,
stats: { might: 87, intelligence: 50, leadership: 66, agility: 89, luck: 56 },
equipment: {
weapon: { itemId: 'yellow-turban-saber', level: 2, exp: 34 },
armor: { itemId: 'rebel-vest', level: 2, exp: 16 },
accessory: { itemId: 'grain-pouch', level: 1, exp: 0 }
},
x: 24,
y: 15
},
{
id: 'xiaopei-leader-gao-shun',
name: '고순',
faction: 'enemy',
className: '여포군 선봉장',
classKey: 'rebelLeader',
level: 10,
exp: 62,
hp: 62,
maxHp: 62,
attack: 17,
move: 4,
stats: { might: 88, intelligence: 66, leadership: 86, agility: 68, luck: 58 },
equipment: {
weapon: { itemId: 'leader-axe', level: 2, exp: 34 },
armor: { itemId: 'lamellar-armor', level: 2, exp: 18 },
accessory: { itemId: 'war-manual', level: 1, exp: 0 }
},
x: 22,
y: 3
}
];
export const firstBattleBonds: BattleBond[] = [
{
id: 'liu-bei__guan-yu',
@@ -2663,6 +2968,39 @@ export const fourthBattleBonds: BattleBond[] = firstBattleBonds.map(cloneBattleB
export const fifthBattleBonds: BattleBond[] = firstBattleBonds.map(cloneBattleBondForScenario);
export const sixthBattleBonds: BattleBond[] = firstBattleBonds.map(cloneBattleBondForScenario);
export const seventhBattleBonds: BattleBond[] = firstBattleBonds.map(cloneBattleBondForScenario);
export const eighthBattleBonds: BattleBond[] = [...firstBattleBonds, ...xuzhouRecruitBonds].map(cloneBattleBondForScenario);
function createEighthBattleTerrain(): TerrainType[][] {
return Array.from({ length: 22 }, (_, y) =>
Array.from({ length: 26 }, (_, x): TerrainType => {
if (x <= 1 && y >= 16 && y <= 20) {
return 'camp';
}
if ((x === 2 && y >= 15 && y <= 20) || (x === 3 && y >= 18 && y <= 20)) {
return 'camp';
}
if ((x >= 20 && x <= 23 && y >= 2 && y <= 5) || (x >= 21 && x <= 24 && y >= 13 && y <= 16)) {
return 'fort';
}
if ((x >= 17 && x <= 18 && y >= 7 && y <= 9) || (x >= 8 && x <= 9 && y >= 12 && y <= 14)) {
return 'village';
}
if ((x === 14 || x === 15) && y <= 18 && y >= 0) {
return 'river';
}
if (x === y - 12 || x === y - 13 || (y >= 7 && y <= 10 && x >= 2 && x <= 18) || (x >= 4 && x <= 22 && y === 10)) {
return 'road';
}
if ((x <= 6 && y <= 4) || (x >= 5 && x <= 10 && y >= 3 && y <= 7) || (x >= 2 && x <= 6 && y >= 8 && y <= 12) || (x >= 18 && x <= 25 && y >= 17)) {
return 'forest';
}
if ((x >= 18 && y <= 2) || (x >= 22 && y >= 7 && y <= 12) || (x >= 10 && x <= 13 && y >= 15 && y <= 20) || (x <= 4 && y >= 4 && y <= 7)) {
return 'hill';
}
return 'plain';
})
);
}
function placeScenarioUnit(unit: UnitData, position: { x: number; y: number }): UnitData {
return {