4,951
edits
Falterfire (talk | contribs) (Fixed check for WeaponAttackType for throwing knives and javelins) |
Falterfire (talk | contribs) (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, "'", " | |||
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, '#', '') |