Module:GetSinkPoints

local json = require('Module:Json') local sinkPoints = json.decode(mw.getCurrentFrame:expandTemplate{title='Template:ResourceSinkPoints.json'}) local sinkPointsExperimental = json.decode(mw.getCurrentFrame:expandTemplate{title='Template:ResourceSinkPointsExperimental.json'})

local p = {}

p.getSinkPoints = function(frame) local itemName = frame.args[1] return sinkPoints[itemName] end

p.getSinkPointsExperimental = function(frame) local itemName = frame.args[1] return sinkPointsExperimental[itemName] end

return p