Module:HeroData: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m write_infobox BulletArmor and Tech reduction to Resist
Sur (talk | contribs)
m moving headcount to HeroData/headcount
Line 623: Line 623:
return output_str
return output_str
end
end


function localize(key, fallback)
function localize(key, fallback)
Line 631: Line 630:
end
end
return result
return result
end
-- {{Hero count}} access point
function p.get_headcount()
local iter = 0
for _, v in pairs(heroes_data) do
if (v["InDevelopment"] == false and v["Name"] ~= nil and v["IsDisabled"] == false) then
iter = iter + 1
end
end
return iter
end
end


return p
return p