Show recommended class coverage in sortie plan

This commit is contained in:
2026-07-09 14:13:17 +09:00
parent 04e5e5d0c5
commit e3a09496be
2 changed files with 12 additions and 2 deletions

View File

@@ -9642,6 +9642,13 @@ function assertSortieTacticalRoster(state, requiredUnitIds) {
throw new Error(`Expected individualized bond drill count to be visible in reserve training preview: ${JSON.stringify(state.sortiePlan)}`);
}
if (
state.sortiePlan.recommendedClassTotal > 0 &&
!state.sortiePlan.recommendationLine.includes(`${state.sortiePlan.recommendedClassSelectedCount}/${state.sortiePlan.recommendedClassTotal}`)
) {
throw new Error(`Expected recommended class coverage to be visible in sortie recommendation line: ${JSON.stringify(state.sortiePlan)}`);
}
if (
!state.sortieFocusedUnit ||
!state.sortieFocusedUnit.id ||

View File

@@ -13353,6 +13353,9 @@ export class CampScene extends Phaser.Scene {
const activeBondCount = this.currentBonds().filter((bond) => bond.unitIds.every((unitId) => selectedIds.has(unitId))).length;
const recommendedSelectedCount = recommended.filter((entry) => selectedIds.has(entry.unitId)).length;
const recommendedClassSelectedCount = recommendedClasses.length - missingClassRecommendations.length;
const recommendedClassCoverageLine = recommendedClasses.length > 0
? `${recommendedClassSelectedCount}/${recommendedClasses.length} ${this.sortieRecommendedClassLine(scenario)}`
: this.sortieRecommendedClassLine(scenario);
const roleCounts = selectedUnits.reduce(
(counts, unit) => {
counts[this.sortieFormationRole(unit)] += 1;
@@ -13423,8 +13426,8 @@ export class CampScene extends Phaser.Scene {
recommendedClassTotal: recommendedClasses.length,
deploymentLine: roleLine,
recommendationLine: recommended.length > 0
? `추천 무장 ${recommendedSelectedCount}/${recommended.length} · 병종 ${this.sortieRecommendedClassLine(scenario)}`
: `추천 병종 ${this.sortieRecommendedClassLine(scenario)}`,
? `추천 무장 ${recommendedSelectedCount}/${recommended.length} · 병종 ${recommendedClassCoverageLine}`
: `추천 병종 ${recommendedClassCoverageLine}`,
recruitedLine:
recruitedUnits.length > 0
? `합류 무장 ${selectedRecruitedCount}/${recruitedUnits.length} · 대기 ${reserveUnits.length}`