Skip to content

Commit

Permalink
remove the normalisation of taken as if over 100% (#6844)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle authored Dec 1, 2023
1 parent e8916ff commit 38a19f1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1404,14 +1404,7 @@ function calcs.buildDefenceEstimations(env, actor)
destTotal = destTotal + shiftTable[destType]
end
end
if destTotal > 100 then
local factor = 100 / destTotal
for destType, portion in pairs(shiftTable) do
shiftTable[destType] = portion * factor
end
destTotal = 100
end
shiftTable[damageType] = 100 - destTotal
shiftTable[damageType] = m_max(100 - destTotal, 0)
actor.damageShiftTable[damageType] = shiftTable

--add same type damage
Expand Down

0 comments on commit 38a19f1

Please sign in to comment.