4,951
edits
Falterfire (talk | contribs) (Some initial prepwork on setting up dungeon DR tables. Too lazy to finish it right now) |
Falterfire (talk | contribs) (Fixed Combat & Slayer area tables breaking) |
||
Line 41: | Line 41: | ||
return a.difficulty[2] < b.difficulty[2] | return a.difficulty[2] < b.difficulty[2] | ||
else | else | ||
return a. | return a.name < b.name | ||
end | end | ||
end) | end) | ||
Line 47: | Line 47: | ||
for i, area in Shared.skpairs(combatAreas) do | for i, area in Shared.skpairs(combatAreas) do | ||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|'..Icons.Icon({area. | result = result..'\r\n|'..Icons.Icon({area.name, type='combat', size='50', notext=true})..'||[['..area.name..']]' | ||
local diff1 = Constants.getDifficultyString(area.difficulty[1]) | local diff1 = Constants.getDifficultyString(area.difficulty[1]) | ||
local diff2 = Constants.getDifficultyString(area.difficulty[2]) | local diff2 = Constants.getDifficultyString(area.difficulty[2]) | ||
Line 68: | Line 68: | ||
local slayerAreas = Shared.clone(AreaData.slayerAreas) | local slayerAreas = Shared.clone(AreaData.slayerAreas) | ||
table.sort(slayerAreas, function(a, b) | table.sort(slayerAreas, function(a, b) | ||
if | if a.difficulty[1] ~= b.difficulty[1] then | ||
return a.difficulty[1] < b.difficulty[1] | return a.difficulty[1] < b.difficulty[1] | ||
elseif a.difficulty[2] == nil then | elseif a.difficulty[2] == nil then | ||
Line 79: | Line 77: | ||
return a.difficulty[2] < b.difficulty[2] | return a.difficulty[2] < b.difficulty[2] | ||
else | else | ||
return a. | return a.name < b.name | ||
end | end | ||
end) | end) | ||
Line 85: | Line 83: | ||
for i, area in Shared.skpairs(slayerAreas) do | for i, area in Shared.skpairs(slayerAreas) do | ||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|'..Icons.Icon({area. | result = result..'\r\n|'..Icons.Icon({area.name, type='slayer', size='50', notext=true})..'||[['..area.name..']]' | ||
local diff1 = Constants.getDifficultyString(area.difficulty[1]) | local diff1 = Constants.getDifficultyString(area.difficulty[1]) | ||
local diff2 = Constants.getDifficultyString(area.difficulty[2]) | local diff2 = Constants.getDifficultyString(area.difficulty[2]) | ||
Line 93: | Line 91: | ||
result = result..'||'..highLvl | result = result..'||'..highLvl | ||
result = result..'||'..CombatAreas._getAreaRequirements(area) | |||
result = result..'|| | |||
result = result..'||' | result = result..'||' | ||
if area.areaEffectDescription ~= nil then | if area.areaEffectDescription ~= nil then |