Expose next sortie checklist detail
This commit is contained in:
@@ -9585,6 +9585,7 @@ function assertSortieTacticalRoster(state, requiredUnitIds) {
|
||||
typeof state.sortieChecklistSummary?.requiredRemainingCount !== 'number' ||
|
||||
typeof state.sortieChecklistSummary?.recommendedRemainingCount !== 'number' ||
|
||||
(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')
|
||||
) {
|
||||
throw new Error(`Expected sortie checklist summary counts: ${JSON.stringify(state.sortieChecklistSummary)}`);
|
||||
|
||||
@@ -13807,6 +13807,7 @@ export class CampScene extends Phaser.Scene {
|
||||
requiredRemainingCount: checklist.filter((item) => !item.complete && item.priority === 'required').length,
|
||||
recommendedRemainingCount: checklist.filter((item) => !item.complete && item.priority !== 'required').length,
|
||||
nextIncompleteLabel: nextIncomplete?.label ?? null,
|
||||
nextIncompleteDetail: nextIncomplete?.detail ?? null,
|
||||
nextIncompletePriority: nextIncomplete?.priority ?? null
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user