Require sortie slots to match limits

This commit is contained in:
2026-07-05 16:43:45 +09:00
parent 6febbe2b3b
commit 48505cad93

View File

@@ -282,8 +282,10 @@ function validateSortie(errors, scenario, classKeys, formationRoles, terrainRule
});
});
if (sortie.deploymentSlots.length < sortie.sortieLimit) {
errors.push(`${context}: deploymentSlots count is lower than sortieLimit`);
if (sortie.deploymentSlots.length !== sortie.sortieLimit) {
errors.push(
`${context}: deploymentSlots count ${sortie.deploymentSlots.length} does not match sortieLimit ${sortie.sortieLimit}`
);
}
const deploymentTiles = new Set();
const deploymentUnitIds = new Set();