2,875
edits
No edit summary |
(Add expansion icon to obstacle) |
||
Line 18: | Line 18: | ||
return Icons.Icon({itemName, type='item', qty = amount, notext=true}) | return Icons.Icon({itemName, type='item', qty = amount, notext=true}) | ||
end | |||
local function getObstacleIcon(obstacle) | |||
local obs = obstacle.Obstacle | |||
return Icons.getExpansionIcon(obs.id) .. Icons.Icon({obs.name, type='agility'}) | |||
end | end | ||
Line 174: | Line 179: | ||
:wikitext(v.Slot) | :wikitext(v.Slot) | ||
:tag('td') | :tag('td') | ||
:wikitext( | :wikitext(getObstacleIcon(v)) | ||
end | end | ||
Line 325: | Line 330: | ||
:css('text-align', 'right') | :css('text-align', 'right') | ||
:wikitext(obstacle.Slot) | :wikitext(obstacle.Slot) | ||
:tag('td'):wikitext( | :tag('td'):wikitext(getObstacleIcon(obstacle)) | ||
if showbonus then | if showbonus then | ||
Line 361: | Line 366: | ||
function p.test() | function p.test() | ||
local obstacles = {"Rope Climb","Monkey Bars"," Balance Seesaw","Elite Pillar of Conflict"} | --local obstacles = {"Rope Climb","Monkey Bars"," Balance Seesaw","Elite Pillar of Conflict"} | ||
local obs = p.calculateCourse(obstacles) | --local obs = p.calculateCourse(obstacles) | ||
mw.logObject(getObstacle('rope trap')) | |||
end | end | ||
return p | return p |
edits