Module:Skills: Difference between revisions

m
getMasteryTokenTable: Amend CCI logic to match in-game
(Implement getMasteryTokenTable())
m (getMasteryTokenTable: Amend CCI logic to match in-game)
Line 537: Line 537:
     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 = math.floor(baseTokenChance / m['milestoneCount'] * (1 - CCI.increasedItemChance / 100))


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