v1.0.2: refactored str bonus calculation.

This commit is contained in:
Evan Debenham 2021-08-28 16:01:52 -04:00
parent 4458402f95
commit 259e56bb88

View File

@ -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";