Module:SoulUnlock: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
accumulate() initial
 
Sur (talk | contribs)
m return accumulated data; save it to global scope
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 34: Line 35:
accumulated_data[key] = sums
accumulated_data[key] = sums
end
end
return accumulated_data
end
end


return p
return p