Editing Module:ItemDataGive feedback
Revision as of 20:54, 6 September 2024 by Shatangmi (talk | contribs) (Created page with "local p = {}; local data = mw.loadjsondata("Data:ItemData.json") -- returns the table of a specific item function get_json_item(name) for i,v in pairs(data) do if (v["Name"] == name) then return v end end end --{{#invoke:ItemData|get_cost|ITEM_NAME}}-- p.get_cost = function(frame) local item_name = frame.args[1] local item = get_json_item(item_name) return item["Cost"] end --{{#invoke:ItemData|get_type|ITEM_NAME}}-- p.get_type = function(frame) local...")
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
Retrieved from "https://deadlock.wiki/Module:ItemData"