From 6feb2526742a06385ed7e6d7f0936312bf988735 Mon Sep 17 00:00:00 2001 From: gahusb Date: Wed, 10 Jun 2026 21:43:14 +0900 Subject: [PATCH] =?UTF-8?q?fix(node-groups):=20no-clobber=20=EA=B0=80?= =?UTF-8?q?=EB=93=9C=EB=A5=BC=20=3D=3D=20null=20=EB=A1=9C=20(null=20?= =?UTF-8?q?=EA=B0=92=EB=8F=84=20=EB=B3=B4=EC=A1=B4=20=EC=B2=98=EB=A6=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/monster/gen-combat-monster.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/monster/gen-combat-monster.mjs b/tools/monster/gen-combat-monster.mjs index 4270164..b5afece 100644 --- a/tools/monster/gen-combat-monster.mjs +++ b/tools/monster/gen-combat-monster.mjs @@ -63,8 +63,8 @@ function patchMap(nn) { if (existing) { // 사용자가 메이커에서 설정한 값 보존 — 누락된 키만 기본값 채움 if (existing.Enable === undefined) existing.Enable = true; - if (existing.EnemyId === undefined) existing.EnemyId = NAME_TO_ENEMY[name] || DEFAULT_ENEMY; - if (existing.Group === undefined) existing.Group = 'combat'; + if (existing.EnemyId == null) existing.EnemyId = NAME_TO_ENEMY[name] || DEFAULT_ENEMY; + if (existing.Group == null) existing.Group = 'combat'; kept++; } else { comps.push({ '@type': 'script.CombatMonster', Enable: true, EnemyId: NAME_TO_ENEMY[name] || DEFAULT_ENEMY, Group: 'combat' });