Anonymous

Module:CombatAreas: Difference between revisions

From Melvor Idle
Fixed an issue with getting difficulty not working when multiple difficulties were present
(_getAreaStat: Add areaEffectDesc)
(Fixed an issue with getting difficulty not working when multiple difficulties were present)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
--NOTE: Some tables are in Module:CombatAreas/AreaTables to prevent loop from referencing Monsters
local p = {}
local p = {}


local Constants = mw.loadData('Module:Constants/data')
local AreaData = mw.loadData('Module:CombatAreas/data')
local AreaData = mw.loadData('Module:CombatAreas/data')


local Constants = require('Module:Constants')
local Shared = require('Module:Shared')
local Shared = require('Module:Shared')
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
Line 96: Line 97:
       return 'None'
       return 'None'
     end
     end
  elseif statName == 'difficulty' then
    local result = Constants.getDifficultyString(area.difficulty[1])
    if area.difficulty[2] ~= nil then
      result = result..' - '..Constants.getDifficultyString(area.difficulty[2])
    end
    return result
   end
   end