I forgot to upgrade maxEpRegeneration

This commit is contained in:
titiger 2021-01-02 21:36:40 +01:00
parent 75651f3b2e
commit c0aa5cc867
1 changed files with 2 additions and 6 deletions

View File

@ -1182,12 +1182,7 @@ void TotalUpgrade::sum(const UpgradeTypeBase *ut, const Unit *unit, bool boostMo
}
}
if (ut->getMaxHpRegeneration() != 0) {
// ut->getMaxHpIsMultiplier() is ignored atm! makes no sense to have one switch for 2 values. It's called value-percent-multiplier anyway. If we need it one day the following commented will be handy:
// int newValue = ((double) unit->getType()->getHpRegeneration()
// + ((double) max(maxHp, unit->getHp()) * ((double) ut->getMaxHpRegeneration() / (double) 100)));
maxHpRegeneration+= ut->getMaxHpRegeneration();
}
maxHpRegeneration+= ut->getMaxHpRegeneration();
{
int upgradeValue;
@ -1204,6 +1199,7 @@ void TotalUpgrade::sum(const UpgradeTypeBase *ut, const Unit *unit, bool boostMo
}
}
maxEpRegeneration+= ut->getMaxEpRegeneration();
{
int upgradeValue;