Module:Sandbox/One Bar: Difference between revisions

Jump to navigation Jump to search
One Bar (talk | contribs)
Changes to items with components test
 
One Bar (talk | contribs)
other function
Line 1: Line 1:
local p = {};
local p = {};
local data = mw.loadJsonData("Data:ItemData.json")
local data = mw.loadJsonData("Data:ItemData.json")
local function get_json_item(name)
for _, v in pairs(data) do
if (v["Name"] == name) then
return v
end
end
return nil
end


local function get_cost(item_name)
local function get_cost(item_name)