From 6eea4f9e17b8eb3eddb1c7f0f98cb28ed019e880 Mon Sep 17 00:00:00 2001 From: gahusb Date: Wed, 10 Jun 2026 21:52:10 +0900 Subject: [PATCH] =?UTF-8?q?fix(node-groups):=20=EC=8A=AC=EB=A1=AF=20?= =?UTF-8?q?=EC=A2=8C=ED=91=9C=20=EB=8B=A8=EC=96=B8=EC=9D=84=20MAX=5FMONSTE?= =?UTF-8?q?RS=20=EA=B8=B0=EC=A4=80=EC=9C=BC=EB=A1=9C=20(fail-fast)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/deck/gen-slaydeck.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/deck/gen-slaydeck.mjs b/tools/deck/gen-slaydeck.mjs index 8ee0fea..ca011f0 100644 --- a/tools/deck/gen-slaydeck.mjs +++ b/tools/deck/gen-slaydeck.mjs @@ -312,8 +312,8 @@ function entity({ id, path, modelId, entryId, componentNames, components, displa function upsertUi() { for (const g of ['combat', 'elite', 'boss']) { - if (!Array.isArray(SLOTS[g]) || SLOTS[g].length < 1) { - throw new Error(`[gen-slaydeck] monster-slots.json 의 "${g}" 그룹 좌표가 없습니다`); + if (!Array.isArray(SLOTS[g]) || SLOTS[g].length < MAX_MONSTERS) { + throw new Error(`[gen-slaydeck] monster-slots.json "${g}" 그룹 좌표(${SLOTS[g] ? SLOTS[g].length : 0}) < MAX_MONSTERS(${MAX_MONSTERS})`); } } const ui = JSON.parse(readFileSync(UI_FILE, 'utf8'));