17,101
edits
(getRecipeRequirements: Include mastery requirement; getMiningGemsTable: Expand to include superior gems) |
(getMiningOresTable: Add base quantity) |
||
Line 240: | Line 240: | ||
end | end | ||
local rockName = Icons.Icon({oreData.name, type='rock', noicon=true, nolink=true}) | local rockName = Icons.Icon({oreData.name, type='rock', noicon=true, nolink=true}) | ||
local qtyText = (oreData.baseQuantity > 1 and '<b>' .. oreData.baseQuantity .. 'x</b> ') or '' | |||
table.insert(resultPart, '\n|-\n|class="table-img" data-sort-value="' .. rockName .. '"| '..Icons.Icon({oreData.name, type='rock', size='50', notext=true, nolink=true})) | table.insert(resultPart, '\n|-\n|class="table-img" data-sort-value="' .. rockName .. '"| '..Icons.Icon({oreData.name, type='rock', size='50', notext=true, nolink=true})) | ||
table.insert(resultPart, '\n| ' .. rockName) | table.insert(resultPart, '\n| ' .. rockName) | ||
table.insert(resultPart, '\n|class="table-img" data-sort-value="' .. ore.name .. '"| '..Icons.Icon({ore.name, type='item', size='50', notext=true})) | table.insert(resultPart, '\n|class="table-img" data-sort-value="' .. ore.name .. '"| '..Icons.Icon({ore.name, type='item', size='50', notext=true})) | ||
table.insert(resultPart, '\n| ' .. Icons.Icon({ore.name, type='item', noicon=true})) | table.insert(resultPart, '\n| ' .. qtyText .. Icons.Icon({ore.name, type='item', noicon=true})) | ||
table.insert(resultPart, '\n| ' .. oreData.type) | table.insert(resultPart, '\n| ' .. oreData.type) | ||
table.insert(resultPart, '\n|data-sort-value="' .. oreData.level ..'"| '..p.getRecipeRequirements(SkillData.Mining.name, oreData)) | table.insert(resultPart, '\n|data-sort-value="' .. oreData.level ..'"| '..p.getRecipeRequirements(SkillData.Mining.name, oreData)) |