Module:LevelTables: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
Implemented collapsible sections, expandable details view, Doorman sorted properly, and corrected Drifter's multishot stat.
One Bar (talk | contribs)
Remove In Development Heroes from the tables
Line 69: Line 69:
local 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"] and not hero["InDevelopment"]) then
table.insert(filtered_heroes, hero)
table.insert(filtered_heroes, hero)
end
end
Line 248: Line 248:
local burst_heroes = {}
local burst_heroes = {}
for _, hero in pairs(heroes_data) do
for _, hero in pairs(heroes_data) do
if ((hero["BulletsPerShot"] or 1) > 1 and not hero["IsDisabled"]) then
if ((hero["BulletsPerShot"] or 1) > 1 and not hero["IsDisabled"] and not hero["InDevelopment"]) then
table.insert(spreadshot_heroes, hero)
table.insert(spreadshot_heroes, hero)
elseif ((hero["BulletsPerBurst"] or 1) > 1 and not hero["IsDisabled"]) then
elseif ((hero["BulletsPerBurst"] or 1) > 1 and not hero["IsDisabled"] and not hero["InDevelopment"]) then
table.insert(burst_heroes, hero)
table.insert(burst_heroes, hero)
end
end