v3.0.0: improved rounding for heroic energy talent

This commit is contained in:
Evan Debenham
2024-10-15 14:14:12 -04:00
parent 32d834694b
commit 1e0889bc4c

View File

@@ -72,7 +72,20 @@ public abstract class ArmorAbility implements Bundlable {
float chargeUse = baseChargeUse;
if (hero.hasTalent(Talent.HEROIC_ENERGY)){
//reduced charge use by 12%/23%/32%/40%
chargeUse *= Math.pow( 0.8804, hero.pointsInTalent(Talent.HEROIC_ENERGY));
switch (hero.pointsInTalent(Talent.HEROIC_ENERGY)){
case 1: default:
chargeUse *= 0.88f;
break;
case 2:
chargeUse *= 0.77f;
break;
case 3:
chargeUse *= 0.68f;
break;
case 4:
chargeUse *= 0.6f;
break;
}
}
return chargeUse;
}