From 2864654cb8a9a47b166b430d7c1afd562b48d694 Mon Sep 17 00:00:00 2001 From: Wickedness Date: Sun, 5 Jul 2026 17:07:32 +0900 Subject: [PATCH] Validate sortie flow after battle ids --- scripts/verify-campaign-flow-data.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/verify-campaign-flow-data.mjs b/scripts/verify-campaign-flow-data.mjs index d44ddfe..0a951c9 100644 --- a/scripts/verify-campaign-flow-data.mjs +++ b/scripts/verify-campaign-flow-data.mjs @@ -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) {