4,951
edits
Falterfire (talk | contribs) (Added a group number to Astrology modifier lists so that multiple bonuses on the same modifier can be grouped together) |
Falterfire (talk | contribs) (Added expansion icons to firemaking & smithing tables) |
||
Line 359: | Line 359: | ||
local recipeItem = Items.getItemByID(recipe.productID) | local recipeItem = Items.getItemByID(recipe.productID) | ||
if recipeItem ~= nil then | if recipeItem ~= nil then | ||
table.insert(recipeList, { id = i, level = recipe.level, itemName = recipeItem.name, itemValue = recipeItem.sellsFor }) | table.insert(recipeList, { id = i, level = recipe.level, itemName = recipeItem.name, itemValue = recipeItem.sellsFor, expIcon = Icons.getExpansionIcon(recipeItem.id) }) | ||
end | end | ||
elseif recipe.categoryID == 'melvorD:Bars' then | elseif recipe.categoryID == 'melvorD:Bars' then | ||
Line 402: | Line 402: | ||
table.insert(resultPart, '\r\n| ' .. Icons.Icon({recipeDef.itemName, type='item', size=50, notext=true})) | table.insert(resultPart, '\r\n| ' .. Icons.Icon({recipeDef.itemName, type='item', size=50, notext=true})) | ||
table.insert(resultPart, '\r\n| ') | table.insert(resultPart, '\r\n| ') | ||
table.insert(resultPart, recipeDef.expIcon) | |||
if recipe.baseQuantity > 1 then | if recipe.baseQuantity > 1 then | ||
table.insert(resultPart, recipe.baseQuantity .. 'x ') | table.insert(resultPart, recipe.baseQuantity .. 'x ') | ||
Line 447: | Line 448: | ||
table.insert(resultPart, '\r\n|-') | table.insert(resultPart, '\r\n|-') | ||
table.insert(resultPart, '\r\n|data-sort-value="'..name..'"|'..Icons.Icon({name, type='item', size='50', notext=true})) | table.insert(resultPart, '\r\n|data-sort-value="'..name..'"|'..Icons.Icon({name, type='item', size='50', notext=true})) | ||
table.insert(resultPart, '|| | table.insert(resultPart, '||'..Icons.getExpansionIcon(logs.id)..Icons.Icon({name, type='item', noicon=true})) | ||
table.insert(resultPart, '||style ="text-align: right;"|'..logData.level) | table.insert(resultPart, '||style ="text-align: right;"|'..logData.level) | ||
table.insert(resultPart, '||style ="text-align: right;" data-sort-value="'..burnTime..'"|'..Shared.timeString(burnTime, true)) | table.insert(resultPart, '||style ="text-align: right;" data-sort-value="'..burnTime..'"|'..Shared.timeString(burnTime, true)) |