17,105
edits
(Amend to use alternative data pages) |
(Update for v1.3) |
||
Line 6: | Line 6: | ||
local GameData1 = mw.loadJsonData('Module:GameData/data') | local GameData1 = mw.loadJsonData('Module:GameData/data') | ||
local GameData2 = mw.loadJsonData('Module:GameData/data2') | local GameData2 = mw.loadJsonData('Module:GameData/data2') | ||
local GameData3 = mw.loadJsonData('Module:GameData/data3') | |||
-- Combine data into a single object | -- Combine data into a single object | ||
local GameData = {} | local GameData = {} | ||
for _, data in ipairs({GameData1, GameData2}) do | for _, data in ipairs({GameData1, GameData2, GameData3}) do | ||
for entityType, entityData in pairs(data) do | for entityType, entityData in pairs(data) do | ||
GameData[entityType] = entityData | GameData[entityType] = entityData |