Show individualized reserve bond drill count

This commit is contained in:
2026-07-09 14:00:19 +09:00
parent e86e9db17e
commit e03efe77db
2 changed files with 12 additions and 1 deletions

View File

@@ -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}`;
}