Show individualized reserve bond drill count
This commit is contained in:
@@ -13705,8 +13705,12 @@ export class CampScene extends Phaser.Scene {
|
||||
const previewNames = reserveUnits.slice(0, 2).map((unit) => unit.name).join(', ');
|
||||
const remaining = reserveUnits.length > 2 ? ` 외 ${reserveUnits.length - 2}명` : '';
|
||||
const individualCount = reserveUnits.filter((unit) => this.campaign?.reserveTrainingAssignments[unit.id]).length;
|
||||
const bondIndividualCount = reserveUnits.filter(
|
||||
(unit) => this.campaign?.reserveTrainingAssignments[unit.id] && this.reserveTrainingFocusDefinitionForUnit(unit.id).bondExpGained > 0
|
||||
).length;
|
||||
const bondIndividualLine = bondIndividualCount > 0 ? ` · 공명 ${bondIndividualCount}명` : '';
|
||||
const gainLine = individualCount > 0
|
||||
? `개별 ${individualCount}명 · 기본 ${focus.label}`
|
||||
? `개별 ${individualCount}명${bondIndividualLine} · 기본 ${focus.label}`
|
||||
: `경험 +${focus.expGained} · 장비 +${focus.equipmentExpGained}${focus.bondExpGained ? ` · 공명 +${focus.bondExpGained}` : ''}`;
|
||||
return `${previewNames}${remaining} · ${gainLine}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user