Anonymous

Module:SkillUnlocks: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 1,318: Line 1,318:
-- If you only need to clear it once (Impending Darkness),
-- If you only need to clear it once (Impending Darkness),
-- don't bother listing the count
-- don't bother listing the count
local appendCount = ''
if req.count > 1 then
if req.count > 1 then
appendCount = ' ' .. req.count .. ' clears'
table.insert(extraReqs, Icons.Icon({dungeonName, type='dungeon', qty=req.count, notext=true}) .. ' clears')
else
table.insert(extraReqs, Icons.Icon({dungeonName, type='dungeon', notext=true}) .. ' cleared')
end
end
local dungeonInfo = Icons.Icon({dungeonName, type='dungeon', notext=true}) .. appendCount
table.insert(extraReqs, dungeonInfo)
elseif req.type == 'MonsterKilled' then
elseif req.type == 'MonsterKilled' then
local monsterName = GameData.getEntityByID('monsters', req.monsterID).name
local monsterName = GameData.getEntityByID('monsters', req.monsterID).name
73

edits