Module:CombatAreas: Difference between revisions

Fixed an issue with getting difficulty not working when multiple difficulties were present
(Added function for getting the difficulty of an area)
(Fixed an issue with getting difficulty not working when multiple difficulties were present)
Line 98: Line 98:
     end
     end
   elseif statName == 'difficulty' then
   elseif statName == 'difficulty' then
     local diffID = area.difficulty
     local result = Constants.getDifficultyString(area.difficulty[1])
     return Constants.getDifficultyString(diffID)
     if area.difficulty[2] ~= nil then
      result = result..' - '..Constants.getDifficultyString(area.difficulty[2])
    end
    return result
   end
   end