Validate sortie flow after battle ids
This commit is contained in:
@@ -59,6 +59,9 @@ for (const flowKey of sortieFlowKeys) {
|
||||
assert(afterBattleId, `Sortie flow ${flowKey} has no afterBattleId`);
|
||||
if (afterBattleId) {
|
||||
assert(battleIds.has(afterBattleId), `Sortie flow ${flowKey} references unknown afterBattleId: ${afterBattleId}`);
|
||||
if (battleIds.has(flowKey)) {
|
||||
assert(afterBattleId === flowKey, `Sortie flow ${flowKey} afterBattleId points to ${afterBattleId}`);
|
||||
}
|
||||
}
|
||||
assert(/\bpages\s*:/.test(flowBody), `Sortie flow ${flowKey} must provide story pages`);
|
||||
for (const fieldName of sortieFlowDisplayFields) {
|
||||
|
||||
Reference in New Issue
Block a user