2,875
edits
No edit summary |
No edit summary |
||
Line 265: | Line 265: | ||
if drop.itemID == itemID then | if drop.itemID == itemID then | ||
if drop.npcs == nil then | if drop.npcs == nil then | ||
table.insert(resultArray, {npc = 'all', minQty = 1, maxQty = 1, wt = 1, totalWt = | table.insert(resultArray, {npc = 'all', minQty = 1, maxQty = 1, wt = 1, totalWt = Num.round2(1/(drop.chance/100), 0), level = 1, npcID = itemID, type = 'generalRare'}) | ||
else | else | ||
for j, npcID in ipairs(drop.npcs) do | for j, npcID in ipairs(drop.npcs) do | ||
local npc = p.getThievingNPCByID(npcID) | local npc = p.getThievingNPCByID(npcID) | ||
if npc ~= nil then | if npc ~= nil then | ||
table.insert(resultArray, {npc = npc.name, minQty = 1, maxQty = 1, wt = 1, totalWt = | table.insert(resultArray, {npc = npc.name, minQty = 1, maxQty = 1, wt = 1, totalWt = Num.round2(1/(drop.chance/100), 0), level = npc.level, abyssalLevel = npc.abyssalLevel, npcID = npc.id, type = 'generalRare'}) | ||
end | end | ||
end | end | ||
Line 480: | Line 480: | ||
if actCount > 0 then | if actCount > 0 then | ||
denom = math.floor(baseTokenChance / actCount) | denom = math.floor(baseTokenChance / actCount) | ||
denomCCI = | denomCCI = Num.round(baseTokenChance / (actCount * (1 + CCI.modifiers.offItemChance / 100)), 0, 0) | ||
end | end | ||
table.insert(resultPart, '\n|style="text-align:right" data-sort-value="' .. denom .. '"|1/' .. Num.formatnum(denom)) | table.insert(resultPart, '\n|style="text-align:right" data-sort-value="' .. denom .. '"|1/' .. Num.formatnum(denom)) | ||
Line 547: | Line 547: | ||
local XPS = baseXP / burnTime | local XPS = baseXP / burnTime | ||
local XP_BF = baseXP * (1 + bonfireBonus / 100) | local XP_BF = baseXP * (1 + bonfireBonus / 100) | ||
local XPS_BF = | local XPS_BF = Num.round(XP_BF / burnTime, 2, 2) | ||
XP_BF = | XP_BF = Num.round(XP_BF, 2, 0) | ||
table.insert(resultPart, '\r\n|-') | table.insert(resultPart, '\r\n|-') |
edits