Module:Items: Difference between revisions

52 bytes removed ,  12 November 2021
Tweaked item call now that apostrophes are actually apostrophes
(Fixed check for WeaponAttackType for throwing knives and javelins)
(Tweaked item call now that apostrophes are actually apostrophes)
Line 67: Line 67:
function p.getItem(name)
function p.getItem(name)
   local result = nil
   local result = nil
   name = string.gsub(name, "%%27", "'")
   name = string.gsub(name, "%%27", "'")
  name = string.gsub(name, "'", "'")
   name = string.gsub(name, "'", "'")
   name = string.gsub(name, "'", "'")
   for i, item in pairs(ItemData.Items) do
   for i, item in pairs(ItemData.Items) do
     local itemName = string.gsub(item.name, '#', '')
     local itemName = string.gsub(item.name, '#', '')