Module:Skills: Difference between revisions

getMasteryTokenTable: Correct chance with 'increased off item chance' modifier
(Update for v1.0.2)
(getMasteryTokenTable: Correct chance with 'increased off item chance' modifier)
Line 343: Line 343:
local token = masteryTokens[m.tokenRef]
local token = masteryTokens[m.tokenRef]
local denom = math.floor(baseTokenChance / m['milestoneCount'])
local denom = math.floor(baseTokenChance / m['milestoneCount'])
local denomCCI = math.floor(baseTokenChance / m['milestoneCount'] * (1 - CCI.increasedItemChance / 100))
local denomCCI = Shared.round(baseTokenChance / (m['milestoneCount'] * (1 + CCI.increasedItemChance / 100)), 0, 0)


table.insert(resultPart, '\r\n|-')
table.insert(resultPart, '\r\n|-')