4,951
edits
Falterfire (talk | contribs) (Added note about CombatAreas/AreaTables, removed unnecessary Constants call) |
Falterfire (talk | contribs) (Added function for getting the difficulty of an area) |
||
Line 4: | Line 4: | ||
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 diffID = area.difficulty | |||
return Constants.getDifficultyString(diffID) | |||
end | end | ||