Module:Sandbox/One Bar: Difference between revisions

One Bar (talk | contribs)
No edit summary
One Bar (talk | contribs)
No edit summary
Line 20: Line 20:


p.pi_table = function(frame)
p.pi_table = function(frame)
local pi_souls_list = get_pi_list()
local pi_souls_list = {}
for _, v in ipairs(soul_unlocks_data) do
for _, v in ipairs(soul_unlocks_data) do
if (v["PowerIncrease"]) then
if (v["PowerIncrease"]) then
Line 29: Line 29:
for _ in ipairs(pi_souls_list) do level_count = level_count + 1 end
for _ in ipairs(pi_souls_list) do level_count = level_count + 1 end
local filtered_heroes = filtered_heroes()
local filtered_heroes = {}
for _, hero in pairs(heroes_data) do
for _, hero in pairs(heroes_data) do
if (not hero["IsDisabled"]) then
if (not hero["IsDisabled"]) then
table.insert(filtered, hero)
table.insert(filtered_heroes, hero)
end
end
end
end