Add late campaign character portraits
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user