Module:ItemData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
cleanup iters, fix the count |
"verified testing", just removed param so function has no user input |
||
| Line 151: | Line 151: | ||
end | end | ||
function p.get_headcount( | function p.get_headcount() | ||
local iter = 0 | local iter = 0 | ||
local tbl = get_similar_items("Disabled") | |||
local tbl = get_similar_items( | |||
for _, v in ipairs(tbl) do | for _, v in ipairs(tbl) do | ||
if (v["Disabled"] == false and v["Name"] ~= nil) then | if (v["Disabled"] == false and v["Name"] ~= nil) then | ||