Core/Unit: rename & cleanup GetCreatePowers

it hurted my eyes too much

(cherry picked from commit 954fd2639a5745c8f5165f329f64a143c6ffc5f7)
This commit is contained in:
ccrs
2021-11-21 19:28:17 +01:00
committed by Shauren
parent de8e1a4820
commit a8ec1ba9bc
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -320,7 +320,7 @@ void Player::UpdateMaxPower(Powers power)
UnitMods unitMod = UnitMods(UNIT_MOD_POWER_START + power);
float value = GetFlatModifierValue(unitMod, BASE_VALUE) + GetCreatePowers(power);
float value = GetFlatModifierValue(unitMod, BASE_VALUE) + GetCreatePowerValue(power);
value *= GetPctModifierValue(unitMod, BASE_PCT);
value += GetFlatModifierValue(unitMod, TOTAL_VALUE);
value *= GetPctModifierValue(unitMod, TOTAL_PCT);
@@ -917,7 +917,7 @@ void Creature::UpdateMaxPower(Powers power)
UnitMods unitMod = UnitMods(UNIT_MOD_POWER_START + power);
float value = GetFlatModifierValue(unitMod, BASE_VALUE) + GetCreatePowers(power);
float value = GetFlatModifierValue(unitMod, BASE_VALUE) + GetCreatePowerValue(power);
value *= GetPctModifierValue(unitMod, BASE_PCT);
value += GetFlatModifierValue(unitMod, TOTAL_VALUE);
value *= GetPctModifierValue(unitMod, TOTAL_PCT);
@@ -1168,7 +1168,7 @@ void Guardian::UpdateMaxPower(Powers power)
UnitMods unitMod = UnitMods(UNIT_MOD_POWER_START + power);
float value = GetFlatModifierValue(unitMod, BASE_VALUE) + GetCreatePowers(power);
float value = GetFlatModifierValue(unitMod, BASE_VALUE) + GetCreatePowerValue(power);
value *= GetPctModifierValue(unitMod, BASE_PCT);
value += GetFlatModifierValue(unitMod, TOTAL_VALUE);
value *= GetPctModifierValue(unitMod, TOTAL_PCT);