diff --git a/tools/monster/lib/monster-model.mjs b/tools/monster/lib/monster-model.mjs index 1b81403..38b40ac 100644 --- a/tools/monster/lib/monster-model.mjs +++ b/tools/monster/lib/monster-model.mjs @@ -69,7 +69,7 @@ export function buildMonsterInstance({ enemyId, enemy, name, guid, mapTag, x, gr jsonString: { name, path, nameEditable: true, enable: true, visible: true, localize: false, displayOrder: 4, pathConstraints: '///', revision: 2, - origin: { type: 'Model', entry_id: enemyId, sub_entity_id: null, root_entity_id: guid, replaced_model_id: null }, + origin: { type: 'Model', entry_id: modelEntryId(enemyId), sub_entity_id: null, root_entity_id: guid, replaced_model_id: null }, modelId: modelEntryId(enemyId), '@components': components, '@version': 1, diff --git a/tools/monster/monster-model.test.mjs b/tools/monster/monster-model.test.mjs index 92ff633..faf86df 100644 --- a/tools/monster/monster-model.test.mjs +++ b/tools/monster/monster-model.test.mjs @@ -42,7 +42,7 @@ test('buildMonsterModel: 원본 skeleton 비변형(순수 함수)', () => { test('buildMonsterInstance: 모델 연결·컴포넌트 값', () => { const e = buildMonsterInstance({ enemyId: 'slime', enemy, name: 'slime', guid: '00000bb9-0000-4000-8000-000000000bb9', mapTag: '03', x: 3.4, group: 'elite' }); assert.equal(e.jsonString.modelId, 'monster-slime'); - assert.equal(e.jsonString.origin.entry_id, 'slime'); + assert.equal(e.jsonString.origin.entry_id, 'monster-slime'); assert.equal(e.jsonString.origin.root_entity_id, e.id); assert.equal(e.path, '/maps/map03/slime'); const comp = (t) => e.jsonString['@components'].find((c) => c['@type'] === t);