Anonymous

Module:ItemsTable: Difference between revisions

From Melvor Idle
Add completion requirement column
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
(Add completion requirement column)
Line 38: Line 38:
     itemRow = itemRow..'\r\n|'..Icons.Icon({item.name, type='item', notext=true, size=50})
     itemRow = itemRow..'\r\n|'..Icons.Icon({item.name, type='item', notext=true, size=50})
     itemRow = itemRow..'||'..Icons.Icon({item.name, type='item', noicon=true})..'||'..(i)..'||'..item.category..'||'..item.type
     itemRow = itemRow..'||'..Icons.Icon({item.name, type='item', noicon=true})..'||'..(i)..'||'..item.category..'||'..item.type
    itemRow = itemRow..'|| '..Items._getItemStat(item, 'completionReq')
     itemRow = itemRow..'||data-sort-value="'..item.sellsFor..'"|'..Icons.GP(item.sellsFor)
     itemRow = itemRow..'||data-sort-value="'..item.sellsFor..'"|'..Icons.GP(item.sellsFor)
     itemRow = itemRow..'||style="text-align:right;"|'..SourceTables._getItemSources(item)
     itemRow = itemRow..'||style="text-align:right;"|'..SourceTables._getItemSources(item)