2,875
edits
No edit summary |
No edit summary |
||
Line 155: | Line 155: | ||
:tag('th'):wikitext('XP') | :tag('th'):wikitext('XP') | ||
:tag('th'):wikitext('Ingredients') | :tag('th'):wikitext('Ingredients') | ||
:tag('th'):wikitext('[[' .. DLC .. ']]') | |||
:tag('th'):wikitext('Tier') | :tag('th'):wikitext('Tier') | ||
:css('width', '30px') | :css('width', '30px') | ||
Line 168: | Line 169: | ||
["items"] = potion.itemCosts, | ["items"] = potion.itemCosts, | ||
["currencies"] = potion.currencyCosts | ["currencies"] = potion.currencyCosts | ||
}, 'N/A', nil, ' | }, 'N/A', nil, '<br>') | ||
local row = html:tag('tr') | local row = html:tag('tr') | ||
Line 177: | Line 178: | ||
:attr('data-sort-value', baseXP) | :attr('data-sort-value', baseXP) | ||
:css('text-align', 'right') | :css('text-align', 'right') | ||
row:tag('td'):attr('rowspan', 4):wikitext(Icons.getExpansionIcon(potion.potionIDs[1])) | |||
:css('text-align', 'center') | |||
:attr('data-sort-value', Icons.getExpansionID(potion.potionIDs[1])) | |||
row:tag('td'):attr('rowspan', 4):wikitext(costText) | row:tag('td'):attr('rowspan', 4):wikitext(costText) | ||
local tierRows = {} | local tierRows = {} | ||
Line 190: | Line 192: | ||
local tierRow = j == 1 and row or html:tag('tr') | local tierRow = j == 1 and row or html:tag('tr') | ||
tierRow:tag('td'):wikitext(Icons.Icon({tierPot.name, type='item', notext=true})) | tierRow:tag('td'):wikitext(Icons.Icon({tierPot.name, type='item', notext=true})) | ||
:wikitext('[[' .. tierPot.name .. '|' .. tierSuffix[j] .. ']]') | |||
--tierRow:tag('td'):wikitext(Items.getValueText(tierPot)) | --tierRow:tag('td'):wikitext(Items.getValueText(tierPot)) | ||
-- | -- :css('text-align', 'right') | ||
-- | -- :attr('data-sort-value', tierPot.sellsFor) | ||
tierRow:tag('td'):wikitext(tierPot.charges) | tierRow:tag('td'):wikitext(tierPot.charges) | ||
:css('text-align', 'right') | |||
tierRow:tag('td'):wikitext(p._getPotionDescription(tierPot)) | tierRow:tag('td'):wikitext(p._getPotionDescription(tierPot)) | ||
end | end |
edits