17,101
edits
(_getDungeonRewards: Safely handle cases where boss monsters have no loot table) |
(getSlayerAreaTable: Fix area effect descriptions; Use in-game display order for all zone tables) |
||
Line 30: | Line 30: | ||
result = result..'\r\n!colspan="2"|Zone!!Difficulty!!Lowest Monster Level!!Highest Monster Level' | result = result..'\r\n!colspan="2"|Zone!!Difficulty!!Lowest Monster Level!!Highest Monster Level' | ||
for i, area in ipairs(AreaData.combatAreas) do | |||
for i, area in | |||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|'..Icons.Icon({area.name, type='combat', size='50', notext=true}) | result = result..'\r\n|'..Icons.Icon({area.name, type='combat', size='50', notext=true}) | ||
Line 67: | Line 52: | ||
result = result..'\r\n!colspan="2"|Zone!!Difficulty!!Highest Monster Level!!Requirements!!Area Effect' | result = result..'\r\n!colspan="2"|Zone!!Difficulty!!Highest Monster Level!!Requirements!!Area Effect' | ||
for i, area in ipairs(AreaData.slayerAreas) do | |||
for i, area in | |||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|'..Icons.Icon({area.name, type='slayer', size='50', notext=true}) | result = result..'\r\n|'..Icons.Icon({area.name, type='slayer', size='50', notext=true}) | ||
Line 96: | Line 66: | ||
result = result..'||' | result = result..'||' | ||
if area.areaEffectDescription ~= nil then | if area.areaEffectDescription ~= nil then | ||
result = result..area.areaEffectDescription | result = result .. string.gsub(area.areaEffectDescription, '${effectValue}', area.areaEffectValue or 0) | ||
end | end | ||
end | end | ||
Line 159: | Line 129: | ||
function p.getDungeonTable(frame) | function p.getDungeonTable(frame) | ||
local result = '{| class="wikitable sortable stickyHeader"' | local result = '{| class="wikitable sortable stickyHeader"' | ||
result = result..'\r\n|-class="headerRow-0"' | result = result..'\r\n|-class="headerRow-0"' | ||
result = result..'\r\n!colspan="2"|Dungeon!!Difficulty!!Monsters!!Boss Level!!Reward(s)!!Boss Pet' | result = result..'\r\n!colspan="2"|Dungeon!!Difficulty!!Monsters!!Boss Level!!Reward(s)!!Boss Pet' | ||
for i, dung in ipairs(AreaData.dungeons) do | |||
for i, dung in | |||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|data-sort-value="'..dung.name..'"|'..Icons.Icon({dung.name, type='dungeon', size='50', notext=true}) | result = result..'\r\n|data-sort-value="'..dung.name..'"|'..Icons.Icon({dung.name, type='dungeon', size='50', notext=true}) |