v1.0.2: refactored str bonus calculation.
This commit is contained in:
parent
4458402f95
commit
259e56bb88
|
@ -225,20 +225,20 @@ public class Hero extends Char {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int STR() {
|
public int STR() {
|
||||||
int STR = this.STR;
|
int strBonus = 0;
|
||||||
|
|
||||||
STR += RingOfMight.strengthBonus( this );
|
strBonus += RingOfMight.strengthBonus( this );
|
||||||
|
|
||||||
AdrenalineSurge buff = buff(AdrenalineSurge.class);
|
AdrenalineSurge buff = buff(AdrenalineSurge.class);
|
||||||
if (buff != null){
|
if (buff != null){
|
||||||
STR += buff.boost();
|
strBonus += buff.boost();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasTalent(Talent.STRONGMAN)){
|
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";
|
private static final String CLASS = "class";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user