Expose next sortie checklist detail

This commit is contained in:
2026-07-09 14:24:11 +09:00
parent f4eaa4a5be
commit d0ea5de861
2 changed files with 2 additions and 0 deletions

View File

@@ -9585,6 +9585,7 @@ function assertSortieTacticalRoster(state, requiredUnitIds) {
typeof state.sortieChecklistSummary?.requiredRemainingCount !== 'number' || typeof state.sortieChecklistSummary?.requiredRemainingCount !== 'number' ||
typeof state.sortieChecklistSummary?.recommendedRemainingCount !== 'number' || typeof state.sortieChecklistSummary?.recommendedRemainingCount !== 'number' ||
(state.sortieChecklistSummary?.nextIncompleteLabel !== null && typeof state.sortieChecklistSummary?.nextIncompleteLabel !== 'string') || (state.sortieChecklistSummary?.nextIncompleteLabel !== null && typeof state.sortieChecklistSummary?.nextIncompleteLabel !== 'string') ||
(state.sortieChecklistSummary?.nextIncompleteDetail !== null && typeof state.sortieChecklistSummary?.nextIncompleteDetail !== 'string') ||
(state.sortieChecklistSummary?.nextIncompletePriority !== null && typeof state.sortieChecklistSummary?.nextIncompletePriority !== 'string') (state.sortieChecklistSummary?.nextIncompletePriority !== null && typeof state.sortieChecklistSummary?.nextIncompletePriority !== 'string')
) { ) {
throw new Error(`Expected sortie checklist summary counts: ${JSON.stringify(state.sortieChecklistSummary)}`); throw new Error(`Expected sortie checklist summary counts: ${JSON.stringify(state.sortieChecklistSummary)}`);

View File

@@ -13807,6 +13807,7 @@ export class CampScene extends Phaser.Scene {
requiredRemainingCount: checklist.filter((item) => !item.complete && item.priority === 'required').length, requiredRemainingCount: checklist.filter((item) => !item.complete && item.priority === 'required').length,
recommendedRemainingCount: checklist.filter((item) => !item.complete && item.priority !== 'required').length, recommendedRemainingCount: checklist.filter((item) => !item.complete && item.priority !== 'required').length,
nextIncompleteLabel: nextIncomplete?.label ?? null, nextIncompleteLabel: nextIncomplete?.label ?? null,
nextIncompleteDetail: nextIncomplete?.detail ?? null,
nextIncompletePriority: nextIncomplete?.priority ?? null nextIncompletePriority: nextIncomplete?.priority ?? null
}; };
} }