From 259e56bb88d924be0de00598ec69f3eed278129f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 28 Aug 2021 16:01:52 -0400 Subject: [PATCH] v1.0.2: refactored str bonus calculation. --- .../shatteredpixeldungeon/actors/hero/Hero.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 7f96b994f..38234adac 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -225,20 +225,20 @@ public class Hero extends Char { } public int STR() { - int STR = this.STR; + int strBonus = 0; - STR += RingOfMight.strengthBonus( this ); + strBonus += RingOfMight.strengthBonus( this ); AdrenalineSurge buff = buff(AdrenalineSurge.class); if (buff != null){ - STR += buff.boost(); + strBonus += buff.boost(); } if (hasTalent(Talent.STRONGMAN)){ - STR = (int)Math.floor(STR * (1f + 0.03f + 0.05f*pointsInTalent(Talent.STRONGMAN))); + strBonus += (int)Math.floor(STR * (0.03f + 0.05f*pointsInTalent(Talent.STRONGMAN))); } - return STR; + return STR + strBonus; } private static final String CLASS = "class";