4,951
edits
Falterfire (talk | contribs) (Formatting changes) |
Falterfire (talk | contribs) (Accounted for Infernal Stronghold needing multiple clears) |
||
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 Icons.Icon({dung.name, type='dungeon'})..' Completed' | local compCount = area.requiresCompletionCount ~= nil and area.requiresCompletionCount or 1 | ||
if compCount > 1 then | |||
return compCount..'x '..Icons.Icon({dung.name, type='dungeon'})..' Completions' | |||
else | |||
return Icons.Icon({dung.name, type='dungeon'})..' Completed' | |||
end | |||
else | else | ||
return '' | return '' |