4,951
edits
Falterfire (talk | contribs) (Added p.getDungeonRequirements) |
Falterfire (talk | contribs) (Formatting changes) |
||
Line 81: | Line 81: | ||
if area.requiresCompletion ~= nil and area.requiresCompletion >= 0 then | if area.requiresCompletion ~= nil and area.requiresCompletion >= 0 then | ||
local dung = p.getAreaByID('dungeon', area.requiresCompletion) | local dung = p.getAreaByID('dungeon', area.requiresCompletion) | ||
return | return Icons.Icon({dung.name, type='dungeon'})..' Completed' | ||
else | else | ||
return '' | return '' | ||
Line 133: | Line 133: | ||
local result = p._getAreaStat(area, 'dungeonReq') | local result = p._getAreaStat(area, 'dungeonReq') | ||
if result ~= '' then | if result ~= '' then | ||
result = | result = "\r\n|-\r\n|'''Requirements:'''<br/>"..result | ||
end | end | ||
return result | return result |