v1.4.0: reduced the rate that berserk's shield decays over time

This commit is contained in:
Evan Debenham
2022-09-22 13:39:01 -04:00
parent 62cc93bb8d
commit a19bad4d00

View File

@@ -96,7 +96,8 @@ public class Berserk extends Buff implements ActionIndicator.Action {
if (berserking()){
ShieldBuff buff = target.buff(WarriorShield.class);
if (target.shielding() > 0) {
int dmg = 1 + (int)Math.ceil(target.shielding() * 0.05f);
//lose 2.5% of shielding per turn, but no less than 1
int dmg = (int)Math.ceil(target.shielding() * 0.025f);
if (buff != null && buff.shielding() > 0) {
dmg = buff.absorbDamage(dmg);
}