Require recommended units in deployment slots
This commit is contained in:
@@ -332,6 +332,11 @@ function validateSortie(errors, scenario, classKeys, formationRoles, terrainRule
|
|||||||
errors.push(`${context}: required unit "${unitId}" must have an explicit deployment slot`);
|
errors.push(`${context}: required unit "${unitId}" must have an explicit deployment slot`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
recommendedUnitIds.forEach((unitId) => {
|
||||||
|
if (!deploymentUnitIds.has(unitId)) {
|
||||||
|
errors.push(`${context}: recommended unit "${unitId}" must have an explicit deployment slot`);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function validateRewards(errors, scenario, scenarioIds, itemNames, knownRewardUnitIds, context) {
|
function validateRewards(errors, scenario, scenarioIds, itemNames, knownRewardUnitIds, context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user