Anonymous

Module:CombatAreas: Difference between revisions

From Melvor Idle
Formatting changes
(Added p.getDungeonRequirements)
(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 'Completing '..Icons.Icon({dung.name, type='dungeon'})
       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 = '\r\n|-\r\n|Requirements:<br/>'..result
     result = "\r\n|-\r\n|'''Requirements:'''<br/>"..result
   end
   end
   return result
   return result