Module:HeroData: Difference between revisionsGive feedback
m formatting test |
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. | 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 | ||