Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Fixed apostrophes not being handled correctly
(Added new Creation Table override for arrow shafts)
(Fixed apostrophes not being handled correctly)
Line 73: Line 73:
function p.getItem(name)
function p.getItem(name)
   local result = nil
   local result = nil
  name = string.gsub(name, "%%27", "'")
   name = string.gsub(name, "'", "'")
   name = string.gsub(name, "'", "'")
   for i, item in pairs(ItemData.Items) do
   for i, item in pairs(ItemData.Items) do