Module:Skills/Gathering: Difference between revisions
From Melvor Idle
No edit summary |
No edit summary |
||
Line 216: | Line 216: | ||
local qtyText = (oreData.baseQuantity > 1 and '<b>' .. oreData.baseQuantity .. 'x</b> ') or '' | local qtyText = (oreData.baseQuantity > 1 and '<b>' .. oreData.baseQuantity .. 'x</b> ') or '' | ||
html:tag('tr') | local row = html:tag('tr') | ||
row :tag('td'):wikitext(Icons.Icon({oreData.name, type='rock', notext=true, nolink=true})) | |||
:addClass('table-img') | :addClass('table-img') | ||
:attr('data-sort-value', rockName) | :attr('data-sort-value', rockName) | ||
Line 233: | Line 233: | ||
:css('text-align', 'right') | :css('text-align', 'right') | ||
local respawn = | local respawn = | ||
row:tag('td'):wikitext(respawnText) | |||
:attr('data-sort-value', respawnSort) | |||
row:tag('td'):wikitext(Items.getValueText(ore)) | |||
:attr('data-sort-value', ore.sellsFor) | |||
if respawnText == 'N/A' then | |||
respawn:css('text-align', 'right') | |||
else | |||
respawn:addClass('table-na') | |||
end | |||
end | end | ||