Expose reserve bond partner counts
This commit is contained in:
@@ -9597,6 +9597,7 @@ function assertSortieTacticalRoster(state, requiredUnitIds) {
|
|||||||
!unit.reserveTrainingFocusId ||
|
!unit.reserveTrainingFocusId ||
|
||||||
!unit.reserveTrainingFocusLabel ||
|
!unit.reserveTrainingFocusLabel ||
|
||||||
typeof unit.reserveTrainingBondPreviewLine !== 'string' ||
|
typeof unit.reserveTrainingBondPreviewLine !== 'string' ||
|
||||||
|
typeof unit.reserveTrainingBondPartnerCount !== 'number' ||
|
||||||
typeof unit.reserveTrainingPlanLine !== 'string'
|
typeof unit.reserveTrainingPlanLine !== 'string'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -9651,6 +9652,7 @@ function assertSortieTacticalRoster(state, requiredUnitIds) {
|
|||||||
!state.sortieFocusedUnit.reserveTrainingFocusId ||
|
!state.sortieFocusedUnit.reserveTrainingFocusId ||
|
||||||
!state.sortieFocusedUnit.reserveTrainingFocusLabel ||
|
!state.sortieFocusedUnit.reserveTrainingFocusLabel ||
|
||||||
typeof state.sortieFocusedUnit.reserveTrainingBondPreviewLine !== 'string' ||
|
typeof state.sortieFocusedUnit.reserveTrainingBondPreviewLine !== 'string' ||
|
||||||
|
typeof state.sortieFocusedUnit.reserveTrainingBondPartnerCount !== 'number' ||
|
||||||
typeof state.sortieFocusedUnit.reserveTrainingPlanLine !== 'string' ||
|
typeof state.sortieFocusedUnit.reserveTrainingPlanLine !== 'string' ||
|
||||||
typeof state.sortieFocusedUnit.terrainScore !== 'number' ||
|
typeof state.sortieFocusedUnit.terrainScore !== 'number' ||
|
||||||
!state.sortieFocusedUnit.terrainGrade ||
|
!state.sortieFocusedUnit.terrainGrade ||
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ type SortieFocusedUnitSummary = SortieUnitTacticalSummary & {
|
|||||||
reserveTrainingFocusId: CampaignReserveTrainingFocusId;
|
reserveTrainingFocusId: CampaignReserveTrainingFocusId;
|
||||||
reserveTrainingFocusLabel: string;
|
reserveTrainingFocusLabel: string;
|
||||||
reserveTrainingBondPreviewLine: string;
|
reserveTrainingBondPreviewLine: string;
|
||||||
|
reserveTrainingBondPartnerCount: number;
|
||||||
reserveTrainingPlanLine: string;
|
reserveTrainingPlanLine: string;
|
||||||
terrainScore: number;
|
terrainScore: number;
|
||||||
terrainGrade: string;
|
terrainGrade: string;
|
||||||
@@ -13206,6 +13207,7 @@ export class CampScene extends Phaser.Scene {
|
|||||||
reserveTrainingFocusId: reserveTrainingFocus.id,
|
reserveTrainingFocusId: reserveTrainingFocus.id,
|
||||||
reserveTrainingFocusLabel: reserveTrainingFocus.label,
|
reserveTrainingFocusLabel: reserveTrainingFocus.label,
|
||||||
reserveTrainingBondPreviewLine: this.reserveTrainingBondPreviewLine(unit),
|
reserveTrainingBondPreviewLine: this.reserveTrainingBondPreviewLine(unit),
|
||||||
|
reserveTrainingBondPartnerCount: this.reserveTrainingBondPartnerNames(unit).length,
|
||||||
reserveTrainingPlanLine: this.reserveTrainingPlanLine(unit),
|
reserveTrainingPlanLine: this.reserveTrainingPlanLine(unit),
|
||||||
terrainScore,
|
terrainScore,
|
||||||
terrainGrade: this.sortieTerrainGrade(terrainScore),
|
terrainGrade: this.sortieTerrainGrade(terrainScore),
|
||||||
@@ -15807,6 +15809,7 @@ export class CampScene extends Phaser.Scene {
|
|||||||
reserveTrainingFocusId: reserveTrainingFocus.id,
|
reserveTrainingFocusId: reserveTrainingFocus.id,
|
||||||
reserveTrainingFocusLabel: reserveTrainingFocus.label,
|
reserveTrainingFocusLabel: reserveTrainingFocus.label,
|
||||||
reserveTrainingBondPreviewLine: this.reserveTrainingBondPreviewLine(unit),
|
reserveTrainingBondPreviewLine: this.reserveTrainingBondPreviewLine(unit),
|
||||||
|
reserveTrainingBondPartnerCount: this.reserveTrainingBondPartnerNames(unit).length,
|
||||||
reserveTrainingPlanLine: this.reserveTrainingPlanLine(unit),
|
reserveTrainingPlanLine: this.reserveTrainingPlanLine(unit),
|
||||||
recommended: Boolean(this.sortieRecommendation(unit.id)),
|
recommended: Boolean(this.sortieRecommendation(unit.id)),
|
||||||
recommendationReason: this.sortieRecommendation(unit.id)?.reason ?? null,
|
recommendationReason: this.sortieRecommendation(unit.id)?.reason ?? null,
|
||||||
|
|||||||
Reference in New Issue
Block a user