Anonymous

Module:Sandbox/AuronTest: Difference between revisions

From Melvor Idle
m
no edit summary
m (Optimisation testing)
mNo edit summary
Line 72: Line 72:
     local itemName = string.gsub(item.name, '#', '')
     local itemName = string.gsub(item.name, '#', '')
     if(name == itemName) then
     if(name == itemName) then
       result = item
       return item
      --Make sure every item has an id, and account for Lua being 1-index
      result.id = i - 1
      break
     end
     end
   end
   end
  return result
end
end