17,105
edits
(sortByOrderTable: Protect against errors from unsorted elements) |
(Use JSON tables instead of Lua modules to load data) |
||
Line 4: | Line 4: | ||
local p = {} | local p = {} | ||
local GameData1 = mw. | local GameData1 = mw.loadJsonData('Module:GameData/data.json') | ||
local GameData2 = mw. | local GameData2 = mw.loadJsonData('Module:GameData/data2.json') | ||
-- Combine data into a single object | -- Combine data into a single object | ||
local GameData = {} | local GameData = {} |