Editing Module:SoulUnlock

Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
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 78: Line 78:
for key, value in pairs(data) do
for key, value in pairs(data) do
local display_value = value
local display_value = value
--Add 600
--Add 400
                 if key == "RequiredSouls" then
                 if key == "RequiredSouls" then
                 display_value = display_value + 600
                 display_value = display_value + 400
                 end
                 end
             ret = ret .. string.format("  %s:%s, ", p.localize(key), display_value)
             ret = ret .. string.format("  %s:%s, ", p.localize(key), display_value)
Line 103: Line 103:
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]
     --Add 600
     --Add 400
     if soul_unlock_key == "RequiredSouls" then
     if soul_unlock_key == "RequiredSouls" then
         return last_value + 600
         return last_value + 400
         else
         else
         return last_value
         return last_value
Line 149: Line 149:
-- Retrieve souls agg_record
-- Retrieve souls agg_record
local required_souls = agg_record['RequiredSouls']
local required_souls = agg_record['RequiredSouls']
--Add 600
--Add 400
local souls_str = '{{Souls|' .. (required_souls + 600) .. '}}'
local souls_str = '{{Souls|' .. (required_souls + 400) .. '}}'
tr = tr .. '<td>' .. souls_str .. '</td>'
tr = tr .. '<td>' .. souls_str .. '</td>'
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template