From 430918d4d3c66643f95913f76b551449d557014e Mon Sep 17 00:00:00 2001 From: Wickedness Date: Sun, 5 Jul 2026 17:03:38 +0900 Subject: [PATCH] Fill open sortie slots with recommendations --- src/game/scenes/CampScene.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game/scenes/CampScene.ts b/src/game/scenes/CampScene.ts index 2a7a018..a9a4cdf 100644 --- a/src/game/scenes/CampScene.ts +++ b/src/game/scenes/CampScene.ts @@ -15138,13 +15138,13 @@ export class CampScene extends Phaser.Scene { } }); - if (useDefaultSelection) { + const addDefaultCandidate = (unitId: string) => { + if (allyIds.has(unitId)) { + candidateSet.add(unitId); + } + }; + if (useDefaultSelection || candidateSet.size < maxUnits) { const rule = this.nextSortieRule(); - const addDefaultCandidate = (unitId: string) => { - if (allyIds.has(unitId)) { - candidateSet.add(unitId); - } - }; rule.recommended.forEach((entry) => addDefaultCandidate(entry.unitId)); (rule.recommendedClasses ?? []).forEach((entry) => { allies.filter((unit) => entry.classKeys.includes(unit.classKey)).forEach((unit) => addDefaultCandidate(unit.id));