Module:HeroData: Difference between revisions

Sur (talk | contribs)
m formatting test
Sur (talk | contribs)
m test
Line 12: Line 12:
end
end


-- returns the table of a specific item
-- returns the table of a specific item, used by external modules
function p.pget_json_item(name)
function p.get_json_item(name)
for i,v in pairs(data) do
for i,v in pairs(data) do
if (v["Name"] == name) then
if (v["Name"] == name) then