4,683
edits
m (Fix for misaligned tables when alt recipe is present) |
m (Add sell value to cooking tables) |
||
Line 73: | Line 73: | ||
:attr('colspan', 2) | :attr('colspan', 2) | ||
header0 :tag('th'):wikitext('Ingredients') | header0 :tag('th'):wikitext('Ingredients') | ||
:attr('rowspan', 2) | |||
header0 :tag('th'):wikitext('Value') | |||
:attr('rowspan', 2) | :attr('rowspan', 2) | ||
Line 85: | Line 87: | ||
local xpRate = baseXP / baseInt | local xpRate = baseXP / baseInt | ||
local item = Items.getItemByID(recipe.productID) | local item = Items.getItemByID(recipe.productID) | ||
local currency = item.sellsForCurrency or 'melvorD:GP' | |||
local perfectItem = nil | local perfectItem = nil | ||
if recipe.perfectCookID ~= nil then | if recipe.perfectCookID ~= nil then | ||
Line 142: | Line 145: | ||
end | end | ||
end | end | ||
row:tag('td'):wikitext(Icons._Currency(currency, item.sellsFor)) | |||
:css('text-align', 'right') | |||
end | end | ||