Module:Skills/Gathering: Difference between revisions

no edit summary
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')
:tag('td'):wikitext(Icons.Icon({oreData.name, type='rock', notext=true, nolink=true}))
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 =  
html:tag('td'):wikitext(respawnText)
row:tag('td'):wikitext(respawnText)
  :attr('data-sort-value', respawnSort)
:attr('data-sort-value', respawnSort)
html:tag('td'):wikitext(Items.getValueText(ore))
row:tag('td'):wikitext(Items.getValueText(ore))
  :attr('data-sort-value', ore.sellsFor)
:attr('data-sort-value', ore.sellsFor)
   
   
--if respawnText == 'N/A' then
if respawnText == 'N/A' then
-- respawn:css('text-align', 'right')
respawn:css('text-align', 'right')
--else
else
-- respawn:addClass('table-na')
respawn:addClass('table-na')
--end
end
end
end


2,875

edits