Module:Test
Documentation for this module may be created at Module:Test/doc
-- Module table
local prices = {}
-- Function to get price by item name
function prices.getPrice(itemName)
local data = mw.loadJsonData('Module:GEPrices/data.json')
if not data then
mw.log("Error: Module 'GEPrices/data' not found or failed to load.")
return nil
end
return data[itemName] or nil
end
return prices