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 6eea4f9e17 - Show all commits

View File

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