Module:ItemData: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) separated headcount for street brawl items |
Gammaton32 (talk | contribs) headcount correction and disabled classless items (cosmetics) |
||
| Line 366: | Line 366: | ||
local tbl = get_similar_items("IsDisabled") | local tbl = get_similar_items("IsDisabled") | ||
for _, v in ipairs(tbl) do | for _, v in ipairs(tbl) do | ||
if item_type == | if item_type == "Standard" then | ||
-- return only regular items | -- return only regular items | ||
if (v["IsDisabled"] == false and v["StreetBrawl"] == false and v["Name"] ~= nil) then | if (v["IsDisabled"] == false and v["Slot"] ~= nil and v["StreetBrawl"] == false and v["Name"] ~= nil) then | ||
iter = iter + 1 | iter = iter + 1 | ||
end | end | ||
elseif item_type == "Street Brawl" then | elseif item_type == "Street Brawl" then | ||
-- return only street brawl items | -- return only street brawl items | ||
if (v["IsDisabled"] == false and v["StreetBrawl"] == true and v["Name"] ~= nil) then | if (v["IsDisabled"] == false and v["Slot"] ~= nil and v["StreetBrawl"] == true and v["Name"] ~= nil) then | ||
iter = iter + 1 | iter = iter + 1 | ||
end | end | ||