Module:SoulUnlock: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m invoke for accumulated_data
Sur (talk | contribs)
m save accumulated_data after function definition
Line 1: Line 1:
local p = {}
local p = {}
local soul_unlocks_data = mw.loadJsonData("Data:SoulUnlockData.json")
local soul_unlocks_data = mw.loadJsonData("Data:SoulUnlockData.json")
local accumulated_data = accumulate()


-- Accumulate the data from a list of entries of unlocks, AP, and PI's, to a hash with the # of each
-- Accumulate the data from a list of entries of unlocks, AP, and PI's, to a hash with the # of each
Line 38: Line 37:
return accumulated_data
return accumulated_data
end
end
local accumulated_data = accumulate()


local function write_accumulated(frame)
local function write_accumulated(frame)