Module:Sandbox/LVL: Difference between revisionsGive feedback
No edit summary |
No edit summary |
||
| Line 291: | Line 291: | ||
} | } | ||
local idx = 0 | |||
for i, | for i, min_souls in ipairs(prices) do -- << use min_souls here | ||
if | if min_souls ~= 0 then | ||
local | local max_souls = prices[i + 1] or min_souls * 10 | ||
args["group" .. idx] = | args["group" .. idx] = | ||
frame:expandTemplate{title = "Souls", | frame:expandTemplate{title = "Souls", | ||
args = {[1] = | args = {[1] = min_souls, Shadow = soul_style}} | ||
args["list" .. idx] = | args["list" .. idx] = | ||
write_disabled_item_list(slot, min_souls, max_souls, template, sep) | write_disabled_item_list(slot, min_souls, max_souls, template, sep) | ||