Expose sortie plan readiness
This commit is contained in:
@@ -9624,6 +9624,7 @@ function assertSortieTacticalRoster(state, requiredUnitIds) {
|
|||||||
!Array.isArray(state.sortiePlan.formationSlots) ||
|
!Array.isArray(state.sortiePlan.formationSlots) ||
|
||||||
state.sortiePlan.formationSlots.length < 3 ||
|
state.sortiePlan.formationSlots.length < 3 ||
|
||||||
typeof state.sortiePlan.warningCount !== 'number' ||
|
typeof state.sortiePlan.warningCount !== 'number' ||
|
||||||
|
typeof state.sortiePlan.ready !== 'boolean' ||
|
||||||
typeof state.sortiePlan.activeBondCount !== 'number' ||
|
typeof state.sortiePlan.activeBondCount !== 'number' ||
|
||||||
typeof state.sortiePlan.terrainScore !== 'number' ||
|
typeof state.sortiePlan.terrainScore !== 'number' ||
|
||||||
typeof state.sortiePlan.recommendedSelectedCount !== 'number' ||
|
typeof state.sortiePlan.recommendedSelectedCount !== 'number' ||
|
||||||
|
|||||||
@@ -299,6 +299,7 @@ type SortiePlanSummary = {
|
|||||||
formationSlots: SortieFormationSlot[];
|
formationSlots: SortieFormationSlot[];
|
||||||
warningLine: string;
|
warningLine: string;
|
||||||
warningCount: number;
|
warningCount: number;
|
||||||
|
ready: boolean;
|
||||||
warnings: string[];
|
warnings: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -13461,6 +13462,7 @@ export class CampScene extends Phaser.Scene {
|
|||||||
formationSlots,
|
formationSlots,
|
||||||
warningLine: warnings[0] ?? (hasBattle ? '배치 균형 양호' : '동행 균형 양호'),
|
warningLine: warnings[0] ?? (hasBattle ? '배치 균형 양호' : '동행 균형 양호'),
|
||||||
warningCount: warnings.length,
|
warningCount: warnings.length,
|
||||||
|
ready: warnings.length === 0,
|
||||||
warnings
|
warnings
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user