Editing Module:SoulUnlockGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local util_module = require('Module:Utilities') | local util_module = require('Module:Utilities') | ||
local soul_unlocks_data = mw.loadJsonData("Data:SoulUnlockData.json") | local soul_unlocks_data = mw.loadJsonData("Data:SoulUnlockData.json") | ||
local localization_map = { | local localization_map = { | ||
| Line 77: | Line 76: | ||
ret = ret .. "Index" .. i .. ": " | ret = ret .. "Index" .. i .. ": " | ||
for key, value in pairs(data) do | for key, value in pairs(data) do | ||
ret = ret .. string.format(" %s:%s, ", p.localize(key), value) | |||
end | end | ||
ret = ret .. '<br>' | ret = ret .. '<br>' | ||
| Line 103: | Line 97: | ||
last_index = #accumulated_data | last_index = #accumulated_data | ||
last_value = accumulated_data[last_index][soul_unlock_key] | last_value = accumulated_data[last_index][soul_unlock_key] | ||
return last_value | |||
end | end | ||
| Line 128: | Line 117: | ||
local tr = '' | local tr = '' | ||
tr = tr .. '<th>' .. '' .. '</th>' | tr = tr .. '<th>' .. '' .. '</th>' | ||
tr = tr .. '<th colspan="3">' .. | tr = tr .. '<th colspan="3">' .. 'Individual' .. '</th>' | ||
tr = tr .. '<th colspan="3">' .. | tr = tr .. '<th colspan="3">' .. 'Accumulative' .. '</th>' | ||
ret = ret .. '<tr>' .. tr .. '</tr>' | ret = ret .. '<tr>' .. tr .. '</tr>' | ||
| Line 149: | Line 138: | ||
-- Retrieve souls agg_record | -- Retrieve souls agg_record | ||
local required_souls = agg_record['RequiredSouls'] | local required_souls = agg_record['RequiredSouls'] | ||
local souls_str = '{{Souls|' .. required_souls .. '}}' | |||
local souls_str = '{{Souls|' .. | |||
tr = tr .. '<td>' .. souls_str .. '</td>' | tr = tr .. '<td>' .. souls_str .. '</td>' | ||
| Line 180: | Line 168: | ||
end | end | ||
ret = '<table class="wikitable | ret = '<table class="wikitable">' .. ret .. '</table>' | ||
if debug_mode then | if debug_mode then | ||