2,875
edits
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
local Monsters = require('Module:Monsters') | local Monsters = require('Module:Monsters') | ||
local Skills = require('Module:Skills') | local Skills = require('Module:Skills') | ||
local Num = require('Module:Number') | |||
local SourceOverrides = { | local SourceOverrides = { | ||
Line 80: | Line 81: | ||
-- Special requirements | -- Special requirements | ||
if recipe.totalMasteryRequired ~= nil then | if recipe.totalMasteryRequired ~= nil then | ||
specialReq = Icons.Icon({'Mastery', notext=true}) .. | specialReq = Icons.Icon({'Mastery', notext=true}) .. Num.formatnum(recipe.totalMasteryRequired) .. ' total [[' .. skill .. ']] [[Mastery]]' | ||
end | end | ||
table.insert(tables, p.buildCreationTable(skill, lvl, isAbyssal, xp, req, qty, time, maxTime, specialReq)) | table.insert(tables, p.buildCreationTable(skill, lvl, isAbyssal, xp, req, qty, time, maxTime, specialReq)) | ||
Line 171: | Line 172: | ||
table.insert(reqSubPart, Common.getCostString({ ["items"] = {}, ["currencies"] = recipe.currencyCosts})) | table.insert(reqSubPart, Common.getCostString({ ["items"] = {}, ["currencies"] = recipe.currencyCosts})) | ||
table.insert(reqPart, table.concat(reqSubPart, ', ')) | table.insert(reqPart, table.concat(reqSubPart, ', ')) | ||
table.insert(qtyPart, | table.insert(qtyPart, Num.formatnum(qty * altCost.quantityMultiplier)) | ||
end | end | ||
local sep = "<br/>'''OR''' " | local sep = "<br/>'''OR''' " | ||
Line 268: | Line 269: | ||
table.insert(resultPart, '\r\n|'..qty) | table.insert(resultPart, '\r\n|'..qty) | ||
table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"|Base Experience') | table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"|Base Experience') | ||
table.insert(resultPart, '\r\n|'.. | table.insert(resultPart, '\r\n|'..Num.formatnum(xp)..' XP') | ||
table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"|Base Creation Time') | table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"|Base Creation Time') | ||
table.insert(resultPart, '\r\n|'..Shared.timeString(time, true)) | table.insert(resultPart, '\r\n|'..Shared.timeString(time, true)) | ||
Line 808: | Line 809: | ||
end | end | ||
table.insert(rowPart, '\r\n|style="text-align: left;" data-sort-value="'..levelValue..'"|'..expIcon.. level) | table.insert(rowPart, '\r\n|style="text-align: left;" data-sort-value="'..levelValue..'"|'..expIcon.. level) | ||
table.insert(rowPart, '\r\n|style="text-align: right;" data-sort-value="'..qty..'"|'.. | table.insert(rowPart, '\r\n|style="text-align: right;" data-sort-value="'..qty..'"|'..Num.formatnum(minqty)) | ||
if qty ~= minqty then table.insert(rowPart, ' - '.. | if qty ~= minqty then table.insert(rowPart, ' - '..Num.formatnum(qty)) end | ||
local chance = weight / totalWeight * 100 | local chance = weight / totalWeight * 100 | ||
-- If chance is less than 0.10% then show 2 significant figures, otherwise 2 decimal places | -- If chance is less than 0.10% then show 2 significant figures, otherwise 2 decimal places | ||
Line 851: | Line 852: | ||
table.insert(dropRows, { | table.insert(dropRows, { | ||
source = Icons.Icon({iconName, type='monster'}), | source = Icons.Icon({iconName, type='monster'}), | ||
level = Icons.Icon({'Monsters', img='Combat', notext=true}) .. ' Level ' .. | level = Icons.Icon({'Monsters', img='Combat', notext=true}) .. ' Level ' .. Num.formatnum(monsterLevel), | ||
levelNum = monsterLevel, | levelNum = monsterLevel, | ||
minqty = drop.minQty, | minqty = drop.minQty, |
edits