Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
Added linking to item names for double loot table
(Created getDoubleLootTable)
(Added linking to item names for double loot table)
Line 295: Line 295:
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n|data-sort-value="'..item.name..'"|'..Icons.Icon({item.name, type='item', size=50, notext=true})
     result = result..'\r\n|data-sort-value="'..item.name..'"|'..Icons.Icon({item.name, type='item', size=50, notext=true})
     result = result..'||'..item.name
     result = result..'||[['..item.name..']]'
     result = result..'||style ="text-align: right;" data-sort-value="'..item.chanceToDoubleLoot..'"|'..item.chanceToDoubleLoot..'%'
     result = result..'||style ="text-align: right;" data-sort-value="'..item.chanceToDoubleLoot..'"|'..item.chanceToDoubleLoot..'%'
     result = result..'||'..item.description
     result = result..'||'..item.description