Skip to content

Commit

Permalink
Show Increased Global Energy Shield on Calcs (#5061)
Browse files Browse the repository at this point in the history
Fixes #3418
  • Loading branch information
randomflyingtaco authored Sep 10, 2022
1 parent 6921ce1 commit e925e95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,13 @@ function calcs.defence(env, actor)
energyShield = energyShield + energyShieldBase * calcLib.mod(modDB, nil, "EnergyShield", "Defences")
end
if breakdown then
local inc = modDB:Sum("INC", slotCfg, "Defences", "EnergyShield")
local more = modDB:More(slotCfg, "EnergyShield", "Defences")
t_insert(breakdown["EnergyShield"].slots, {
base = energyShieldBase,
inc = (inc ~= 0) and s_format(" x %.2f", 1 + inc/100),
more = (more ~= 1) and s_format(" x %.2f", more),
total = s_format("%.2f", energyShieldBase * more),
total = s_format("%.2f", energyShieldBase * (1 + inc / 100) * more),
source = "Global",
item = actor.itemList["Global"],
})
Expand Down

0 comments on commit e925e95

Please sign in to comment.