Anonymous

Module:GameData: Difference between revisions

From Melvor Idle
Amend to use alternative data pages
(Use JSON tables instead of Lua modules to load data)
(Amend to use alternative data pages)
Line 4: Line 4:
local p = {}
local p = {}


local GameData1 = mw.loadJsonData('Module:GameData/data.json')
local GameData1 = mw.loadJsonData('Module:GameData/data')
local GameData2 = mw.loadJsonData('Module:GameData/data2.json')
local GameData2 = mw.loadJsonData('Module:GameData/data2')
-- Combine data into a single object
-- Combine data into a single object
local GameData = {}
local GameData = {}