From 1480d9a4d3d9a48ac4dc2d0db3e5f3f41b2a6720 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Mon, 29 Aug 2022 08:02:09 +0200 Subject: [PATCH] Use Life/EnergyShieldRegenRecovery for power builder (#4945) These values were changed in 3f5e2a6d865044f72ca9425f19a37a2f3c6977d8 but this part of the code wasnt updated, this causes crash when importing builds. Signed-off-by: Tomas Slusny Signed-off-by: Tomas Slusny --- src/Classes/CalcsTab.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Classes/CalcsTab.lua b/src/Classes/CalcsTab.lua index 4e1e5ed606..6a8cbea4ea 100644 --- a/src/Classes/CalcsTab.lua +++ b/src/Classes/CalcsTab.lua @@ -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)