17,101
edits
Falterfire (talk | contribs) (Adding expansion icon stuff to thieving general rare table) |
(Add TotH icon to Farming & Astrology tables) |
||
Line 670: | Line 670: | ||
if seedItem ~= nil and productItem ~= nil then | if seedItem ~= nil and productItem ~= nil then | ||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|'..Icons.Icon({seedItem.name, type='item', size='50', notext=true})..'|| | result = result..'\r\n|'..Icons.Icon({seedItem.name, type='item', size='50', notext=true}) | ||
result = result..'|| ' .. Icons.getExpansionIcon(seedItem.id) .. Icons.Icon({seedItem.name, type='item', noicon=true}) | |||
result = result..'||'..seed.level..'||'..Shared.formatnum(seed.baseExperience) | result = result..'||'..seed.level..'||'..Shared.formatnum(seed.baseExperience) | ||
result = result..'||data-sort-value="'..(seed.baseInterval / 1000)..'"|'..Shared.timeString(seed.baseInterval / 1000, true) | result = result..'||data-sort-value="'..(seed.baseInterval / 1000)..'"|'..Shared.timeString(seed.baseInterval / 1000, true) | ||
result = result..'||data-sort-value="'..seedItem.sellsFor..'"|'..Icons.GP(seedItem.sellsFor) | result = result..'||data-sort-value="'..seedItem.sellsFor..'"|'..Icons.GP(seedItem.sellsFor) | ||
result = result..'||'..Icons.Icon({productItem.name, type='item', size='50', notext=true})..'|| | result = result..'||'..Icons.Icon({productItem.name, type='item', size='50', notext=true}) | ||
result = result..'|| ' .. Icons.getExpansionIcon(productItem.id) .. Icons.Icon({productItem.name, type='item', noicon=true}) | |||
if category.id == 'melvorD:Allotment' then | if category.id == 'melvorD:Allotment' then | ||
result = result..'||'..Icons.Icon({'Hitpoints', type='skill', notext=true})..' '..((productItem.healsFor or 0) * 10) | result = result..'||'..Icons.Icon({'Hitpoints', type='skill', notext=true})..' '..((productItem.healsFor or 0) * 10) | ||
Line 710: | Line 712: | ||
if product ~= nil and product.healsFor ~= nil and product.healsFor > 0 then | if product ~= nil and product.healsFor ~= nil and product.healsFor > 0 then | ||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|'..Icons.Icon({product.name, type='item', notext='true', size='50'})..'|| | result = result..'\r\n|'..Icons.Icon({product.name, type='item', notext='true', size='50'}) | ||
result = result..'|| ' .. Icons.getExpansionIcon(product.id) .. Icons.Icon({product.name, type='item', noicon=true}) | |||
result = result..'||style="text-align:right;"|'..recipe.level | result = result..'||style="text-align:right;"|'..recipe.level | ||
result = result..'||style="text-align:right" data-sort-value="'..product.healsFor..'"|'..Icons.Icon({"Hitpoints", type="skill", notext=true})..' '..(product.healsFor * 10) | result = result..'||style="text-align:right" data-sort-value="'..product.healsFor..'"|'..Icons.Icon({"Hitpoints", type="skill", notext=true})..' '..(product.healsFor * 10) | ||
Line 759: | Line 762: | ||
local name = cons.name | local name = cons.name | ||
result = result..'\r\n|-' | result = result..'\r\n|-' | ||
result = result..'\r\n|data-sort-value="'..name..'"|'..Icons.Icon({name, type='constellation', size='50', notext=true})..'||'..name | result = result..'\r\n|data-sort-value="'..name..'"|'..Icons.Icon({name, type='constellation', size='50', notext=true}) | ||
result = result..'|| ' .. Icons.getExpansionIcon(cons.id) .. name | |||
result = result..'||'..cons.level..'||'..cons.baseExperience | result = result..'||'..cons.level..'||'..cons.baseExperience | ||