Expose sortie checklist completion
This commit is contained in:
@@ -13798,9 +13798,11 @@ export class CampScene extends Phaser.Scene {
|
||||
}
|
||||
|
||||
private sortieChecklistSummary(checklist: SortieChecklistItem[]) {
|
||||
const completeCount = checklist.filter((item) => item.complete).length;
|
||||
return {
|
||||
total: checklist.length,
|
||||
completeCount: checklist.filter((item) => item.complete).length,
|
||||
completeCount,
|
||||
complete: completeCount === checklist.length,
|
||||
requiredRemainingCount: checklist.filter((item) => !item.complete && item.priority === 'required').length,
|
||||
recommendedRemainingCount: checklist.filter((item) => !item.complete && item.priority !== 'required').length
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user