Anonymous

Module:Constants: Difference between revisions

From Melvor Idle
More attempted bugfixes
(added handling for when modifiers are nested one layer deep for no reason)
(More attempted bugfixes)
Line 184: Line 184:
     end
     end
     if value[1] ~= nil then
     if value[1] ~= nil then
       result = string.gsub(result, '{SV0}', p.getSkillName(value[1]))
       local skillName = p.getSkillName(value[1])
      if skillName ~= nil then
        result = string.gsub(result, '{SV0}', p.getSkillName(value[1]))
      end
     end
     end
     if value[2] ~= nil then
     if value[2] ~= nil then