Satisfactory Wiki
Advertisement

{{#invoke:GetSinkPoints|getSinkPoints|Rotor}} returns 140


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

local p = {}

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

return p
Advertisement