Add late campaign character portraits

This commit is contained in:
2026-06-24 19:49:19 +09:00
parent 40078eabe3
commit cc70d1b665
10 changed files with 64 additions and 12 deletions

View File

@@ -7231,6 +7231,18 @@ export class BattleScene extends Phaser.Scene {
if (unit.id === 'zhang-fei') {
return 'portrait-zhang-fei';
}
if (unit.id === 'zhuge-liang') {
return 'portrait-zhuge-liang';
}
if (unit.id === 'zhao-yun') {
return 'portrait-zhao-yun';
}
if (unit.id === 'jiang-wei') {
return 'portrait-jiang-wei';
}
if (unit.id.includes('sima-yi') || unit.name === '사마의') {
return 'portrait-sima-yi';
}
return undefined;
}
@@ -9277,6 +9289,7 @@ export class BattleScene extends Phaser.Scene {
classKey: unit.classKey,
textureBase: this.unitViews.get(unit.id)?.textureBase ?? this.unitTextureKey(unit),
actionTexture: this.unitActionTexture(unit),
combatPortraitKey: this.combatPortraitKey(unit) ?? null,
ai: unit.faction === 'enemy' ? this.enemyBehavior(unit) : null,
attackRange: this.attackRange(unit),
level: unit.level,