feat(combat): 노드 타입별 몬스터 그룹 (일반/엘리트/보스) #31

Merged
gahusb merged 9 commits from feature/node-type-monster-groups into main 2026-06-10 22:35:24 +09:00
Showing only changes of commit 6feb252674 - Show all commits

View File

@@ -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' });