From 00b8eb81a9dcbff06766d8d1fd0521954d0bb54e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 27 Apr 2018 01:21:11 -0400 Subject: [PATCH] v0.6.5: nerfed berserker --- .../shatteredpixeldungeon/actors/buffs/Berserk.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java index 60547f9b8..b5e11cf50 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Berserk.java @@ -91,7 +91,7 @@ public class Berserk extends Buff { power = 0f; } } else if (state == State.NORMAL) { - power -= 0.01f * (target.HP/(float)target.HT); + power -= Math.max(0.1f, power) * 0.1f * Math.pow((target.HP/(float)target.HT), 2); if (power <= 0){ detach(); @@ -128,7 +128,7 @@ public class Berserk extends Buff { public void damage(int damage){ if (state == State.RECOVERING) return; - power = Math.min(1.1f, power + ( 0.5f * damage/(float)target.HT) ); + power = Math.min(1.1f, power + (damage/(float)target.HT)/3f ); } public void recover(float percent){