Anonymous

Module:Constants: Difference between revisions

From Melvor Idle
added handling for when modifiers are nested one layer deep for no reason
(Now requiring Shared)
(added handling for when modifiers are nested one layer deep for no reason)
Line 180: Line 180:


   if type(value) == 'table' then
   if type(value) == 'table' then
    if Shared.tableCount(value) == 1 and type(value[1]) == 'table' then
      value = value[1]
    end
     if value[1] ~= nil then
     if value[1] ~= nil then
       result = string.gsub(result, '{SV0}', p.getSkillName(value[1]))
       result = string.gsub(result, '{SV0}', p.getSkillName(value[1]))