Highlight reserve bond drill roster summary
This commit is contained in:
@@ -14060,6 +14060,9 @@ export class CampScene extends Phaser.Scene {
|
|||||||
const recentTrainingCount = this.latestReserveTrainingAwards().length;
|
const recentTrainingCount = this.latestReserveTrainingAwards().length;
|
||||||
const selectedIds = new Set(selected.map((unit) => unit.id));
|
const selectedIds = new Set(selected.map((unit) => unit.id));
|
||||||
const reserveTrainingAssignmentCount = allies.filter((unit) => !selectedIds.has(unit.id) && this.campaign?.reserveTrainingAssignments[unit.id]).length;
|
const reserveTrainingAssignmentCount = allies.filter((unit) => !selectedIds.has(unit.id) && this.campaign?.reserveTrainingAssignments[unit.id]).length;
|
||||||
|
const reserveTrainingBondAssignmentCount = allies.filter(
|
||||||
|
(unit) => !selectedIds.has(unit.id) && this.campaign?.reserveTrainingAssignments[unit.id] && this.reserveTrainingFocusDefinitionForUnit(unit.id).bondExpGained > 0
|
||||||
|
).length;
|
||||||
const bg = this.track(this.add.rectangle(x, y, width, 26, 0x0d141c, 0.92));
|
const bg = this.track(this.add.rectangle(x, y, width, 26, 0x0d141c, 0.92));
|
||||||
bg.setOrigin(0);
|
bg.setOrigin(0);
|
||||||
bg.setStrokeStyle(1, palette.gold, 0.38);
|
bg.setStrokeStyle(1, palette.gold, 0.38);
|
||||||
@@ -14071,7 +14074,9 @@ export class CampScene extends Phaser.Scene {
|
|||||||
recentTrainingCount > 0
|
recentTrainingCount > 0
|
||||||
? `최근 훈련 ${recentTrainingCount} · ${this.latestReserveTrainingFocusLabel()}`
|
? `최근 훈련 ${recentTrainingCount} · ${this.latestReserveTrainingFocusLabel()}`
|
||||||
: reserveTrainingAssignmentCount > 0
|
: reserveTrainingAssignmentCount > 0
|
||||||
? `개별 훈련 ${reserveTrainingAssignmentCount}`
|
? reserveTrainingBondAssignmentCount > 0
|
||||||
|
? `공명 훈련 ${reserveTrainingBondAssignmentCount} · 개별 ${reserveTrainingAssignmentCount}`
|
||||||
|
: `개별 훈련 ${reserveTrainingAssignmentCount}`
|
||||||
: '훈련 대기',
|
: '훈련 대기',
|
||||||
this.textStyle(11, recentTrainingCount > 0 || reserveTrainingAssignmentCount > 0 ? '#a8ffd0' : '#9fb0bf', true)
|
this.textStyle(11, recentTrainingCount > 0 || reserveTrainingAssignmentCount > 0 ? '#a8ffd0' : '#9fb0bf', true)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user