4,951
edits
Falterfire (talk | contribs) (Added function for getting the difficulty of an area) |
Falterfire (talk | contribs) (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 | 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 | ||