Anonymous

Module:GameData/doc: Difference between revisions

From Melvor Idle
Fix issue with setting spellBook attribute of Alt. Magic spells
(Ensure no modded namespaces are active when generating data)
(Fix issue with setting spellBook attribute of Alt. Magic spells)
Line 88: Line 88:
                 else {
                 else {
                     const newData = structuredClone(entity);
                     const newData = structuredClone(entity);
                     newData.forEach((i) => i.spellBook == 'altMagic');
                     newData.forEach((i) => i.spellBook = 'altMagic');
                     return newData;
                     return newData;
                 }
                 }