Skip to content

Commit

Permalink
Use Life/EnergyShieldRegenRecovery for power builder (PathOfBuildingC…
Browse files Browse the repository at this point in the history
…ommunity#4945)

These values were changed in
3f5e2a6 but this part of the code wasnt
updated, this causes crash when importing builds.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
  • Loading branch information
deathbeam authored Aug 29, 2022
1 parent 2844580 commit 1480d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Classes/CalcsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ function CalcsTabClass:PowerBuilder()
(output.Armour - calcBase.Armour) / m_max(10000, calcBase.Armour) +
((output.EnergyShieldRecoveryCap or output.EnergyShield) - (calcBase.EnergyShieldRecoveryCap or calcBase.EnergyShield)) / m_max(3000, (calcBase.EnergyShieldRecoveryCap or calcBase.EnergyShield)) +
(output.Evasion - calcBase.Evasion) / m_max(10000, calcBase.Evasion) +
(output.LifeRegen - calcBase.LifeRegen) / 500 +
(output.EnergyShieldRegen - calcBase.EnergyShieldRegen) / 1000
(output.LifeRegenRecovery - calcBase.LifeRegenRecovery) / 500 +
(output.EnergyShieldRegenRecovery - calcBase.EnergyShieldRegenRecovery) / 1000
if node.path and not node.ascendancyName then
newPowerMax.offence = m_max(newPowerMax.offence, node.power.offence)
newPowerMax.defence = m_max(newPowerMax.defence, node.power.defence)
Expand Down

0 comments on commit 1480d9a

Please sign in to comment.