From ddbb554998d2261d0f0ac22703aa4ed45e64ca5b Mon Sep 17 00:00:00 2001 From: Wickedness Date: Thu, 9 Jul 2026 14:11:09 +0900 Subject: [PATCH] Expose reserve bond partner counts --- scripts/verify-flow.mjs | 2 ++ src/game/scenes/CampScene.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/scripts/verify-flow.mjs b/scripts/verify-flow.mjs index eea9042..49e48a4 100644 --- a/scripts/verify-flow.mjs +++ b/scripts/verify-flow.mjs @@ -9597,6 +9597,7 @@ function assertSortieTacticalRoster(state, requiredUnitIds) { !unit.reserveTrainingFocusId || !unit.reserveTrainingFocusLabel || typeof unit.reserveTrainingBondPreviewLine !== 'string' || + typeof unit.reserveTrainingBondPartnerCount !== 'number' || typeof unit.reserveTrainingPlanLine !== 'string' ); }); @@ -9651,6 +9652,7 @@ function assertSortieTacticalRoster(state, requiredUnitIds) { !state.sortieFocusedUnit.reserveTrainingFocusId || !state.sortieFocusedUnit.reserveTrainingFocusLabel || typeof state.sortieFocusedUnit.reserveTrainingBondPreviewLine !== 'string' || + typeof state.sortieFocusedUnit.reserveTrainingBondPartnerCount !== 'number' || typeof state.sortieFocusedUnit.reserveTrainingPlanLine !== 'string' || typeof state.sortieFocusedUnit.terrainScore !== 'number' || !state.sortieFocusedUnit.terrainGrade || diff --git a/src/game/scenes/CampScene.ts b/src/game/scenes/CampScene.ts index f70dce0..14f1941 100644 --- a/src/game/scenes/CampScene.ts +++ b/src/game/scenes/CampScene.ts @@ -211,6 +211,7 @@ type SortieFocusedUnitSummary = SortieUnitTacticalSummary & { reserveTrainingFocusId: CampaignReserveTrainingFocusId; reserveTrainingFocusLabel: string; reserveTrainingBondPreviewLine: string; + reserveTrainingBondPartnerCount: number; reserveTrainingPlanLine: string; terrainScore: number; terrainGrade: string; @@ -13206,6 +13207,7 @@ export class CampScene extends Phaser.Scene { reserveTrainingFocusId: reserveTrainingFocus.id, reserveTrainingFocusLabel: reserveTrainingFocus.label, reserveTrainingBondPreviewLine: this.reserveTrainingBondPreviewLine(unit), + reserveTrainingBondPartnerCount: this.reserveTrainingBondPartnerNames(unit).length, reserveTrainingPlanLine: this.reserveTrainingPlanLine(unit), terrainScore, terrainGrade: this.sortieTerrainGrade(terrainScore), @@ -15807,6 +15809,7 @@ export class CampScene extends Phaser.Scene { reserveTrainingFocusId: reserveTrainingFocus.id, reserveTrainingFocusLabel: reserveTrainingFocus.label, reserveTrainingBondPreviewLine: this.reserveTrainingBondPreviewLine(unit), + reserveTrainingBondPartnerCount: this.reserveTrainingBondPartnerNames(unit).length, reserveTrainingPlanLine: this.reserveTrainingPlanLine(unit), recommended: Boolean(this.sortieRecommendation(unit.id)), recommendationReason: this.sortieRecommendation(unit.id)?.reason ?? null,