Skip to content

Commit

Permalink
Fix missing net value in display
Browse files Browse the repository at this point in the history
  • Loading branch information
OrderedSet86 committed Jan 27, 2025
1 parent 27e31c8 commit f85ed04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3124,11 +3124,10 @@ function calcs.buildDefenceEstimations(env, actor)
end

-- If there is life recoup and preventedLifeLoss (Grasping Wounds), add per second sum in Calcs breakdown
output["netLifeRecoupAndLossLostOverTimeMax"] = (output["LifeRecoupRecoveryMax"] or 0) - (output["LifeLossLostMax"] or 0)
output["netLifeRecoupAndLossLostOverTimeAvg"] = (output["LifeRecoupRecoveryAvg"] or 0) - (output["LifeLossLostAvg"] or 0)
if (output["LifeRecoupRecoveryAvg"] or 0) > 0 and output.preventedLifeLossTotal > 0 then
output["showNetRecoup"] = true

output["netLifeRecoupAndLossLostOverTimeMax"] = (output["LifeRecoupRecoveryMax"] or 0) - (output["LifeLossLostMax"] or 0)
output["netLifeRecoupAndLossLostOverTimeAvg"] = (output["LifeRecoupRecoveryAvg"] or 0) - (output["LifeLossLostAvg"] or 0)
if breakdown then
breakdown["netLifeRecoupAndLossLostOverTimeMax"] = {
s_format("%.2f ^8(total life recouped per second)", output["LifeRecoupRecoveryMax"]),
Expand Down

0 comments on commit f85ed04

Please sign in to comment.