16,999
edits
(getPotionNavbox: Ensure potions sorted by Herblore level requirement & remove 'Potion' name prefix for cleaner appearance) |
(getPotionNavbox: Link to general potion pages rather than tier I potion specifically) |
||
Line 189: | Line 189: | ||
table.sort(potList[catData.categoryID], function(a, b) return (a.order == b.order and a.name < b.name) or a.order < b.order end) | table.sort(potList[catData.categoryID], function(a, b) return (a.order == b.order and a.name < b.name) or a.order < b.order end) | ||
for j, potData in ipairs(potList[catData.categoryID]) do | for j, potData in ipairs(potList[catData.categoryID]) do | ||
table.insert(potListText, Icons.Icon({ potData. | table.insert(potListText, Icons.Icon({ potData.name .. ' Potion', potData.name, img=potData.img, type='item' })) | ||
end | end | ||
table.insert(resultPart, '\r\n|-\r\n! ' .. catData.name .. ' Potions') | table.insert(resultPart, '\r\n|-\r\n! ' .. catData.name .. ' Potions') |