Add Jieting sortie and Jiang Wei recruitment flow
This commit is contained in:
@@ -6364,30 +6364,39 @@ export class BattleScene extends Phaser.Scene {
|
||||
if (
|
||||
enemy.id.startsWith('northern-first-scout') ||
|
||||
enemy.id.startsWith('northern-second-scout') ||
|
||||
enemy.id.startsWith('northern-third-scout') ||
|
||||
enemy.id.startsWith('northern-first-cavalry') ||
|
||||
enemy.id.startsWith('northern-second-cavalry') ||
|
||||
enemy.id.startsWith('northern-third-cavalry') ||
|
||||
enemy.id === 'northern-first-officer-zhang-he' ||
|
||||
enemy.id === 'northern-second-officer-jiang-wei'
|
||||
enemy.id === 'northern-second-officer-jiang-wei' ||
|
||||
enemy.id === 'northern-third-leader-zhang-he'
|
||||
) {
|
||||
return 'aggressive';
|
||||
}
|
||||
if (
|
||||
enemy.id.startsWith('northern-first-archer') ||
|
||||
enemy.id.startsWith('northern-second-archer') ||
|
||||
enemy.id.startsWith('northern-third-archer') ||
|
||||
enemy.id.startsWith('northern-first-strategist') ||
|
||||
enemy.id.startsWith('northern-second-strategist') ||
|
||||
enemy.id.startsWith('northern-third-strategist') ||
|
||||
enemy.id === 'northern-first-leader-cao-zhen' ||
|
||||
enemy.id === 'northern-second-leader-guo-huai'
|
||||
enemy.id === 'northern-second-leader-guo-huai' ||
|
||||
enemy.id === 'northern-third-officer-jiang-wei'
|
||||
) {
|
||||
return 'hold';
|
||||
}
|
||||
if (
|
||||
enemy.id.startsWith('northern-first-infantry') ||
|
||||
enemy.id.startsWith('northern-second-infantry') ||
|
||||
enemy.id.startsWith('northern-third-infantry') ||
|
||||
enemy.id.startsWith('northern-first-ridge-guard') ||
|
||||
enemy.id.startsWith('northern-second-jieting-guard') ||
|
||||
enemy.id.startsWith('northern-third-ridge-guard') ||
|
||||
enemy.id.startsWith('northern-first-officer') ||
|
||||
enemy.id.startsWith('northern-second-officer')
|
||||
enemy.id.startsWith('northern-second-officer') ||
|
||||
enemy.id.startsWith('northern-third-officer')
|
||||
) {
|
||||
return 'guard';
|
||||
}
|
||||
@@ -7868,22 +7877,30 @@ export class BattleScene extends Phaser.Scene {
|
||||
}
|
||||
|
||||
private unitTextureKey(unit: UnitData) {
|
||||
if (unit.id.startsWith('northern-first-cavalry') || unit.id.startsWith('northern-second-cavalry')) {
|
||||
if (
|
||||
unit.id.startsWith('northern-first-cavalry') ||
|
||||
unit.id.startsWith('northern-second-cavalry') ||
|
||||
unit.id.startsWith('northern-third-cavalry')
|
||||
) {
|
||||
return 'unit-rebel-cavalry';
|
||||
}
|
||||
if (
|
||||
unit.id.startsWith('northern-first-archer') ||
|
||||
unit.id.startsWith('northern-second-archer') ||
|
||||
unit.id.startsWith('northern-third-archer') ||
|
||||
unit.id.startsWith('northern-first-strategist') ||
|
||||
unit.id.startsWith('northern-second-strategist')
|
||||
unit.id.startsWith('northern-second-strategist') ||
|
||||
unit.id.startsWith('northern-third-strategist')
|
||||
) {
|
||||
return 'unit-rebel-archer';
|
||||
}
|
||||
if (
|
||||
unit.id.startsWith('northern-first-officer') ||
|
||||
unit.id.startsWith('northern-second-officer') ||
|
||||
unit.id.startsWith('northern-third-officer') ||
|
||||
unit.id === 'northern-first-leader-cao-zhen' ||
|
||||
unit.id === 'northern-second-leader-guo-huai'
|
||||
unit.id === 'northern-second-leader-guo-huai' ||
|
||||
unit.id === 'northern-third-leader-zhang-he'
|
||||
) {
|
||||
return 'unit-rebel-leader';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user