Module:SoulUnlock: Difference between revisionsGive feedback
accumulate() initial |
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 | ||