Skip to content

Commit

Permalink
Update Hero.java
Browse files Browse the repository at this point in the history
EffStr fix
  • Loading branch information
Mikhael-Danilov authored Jul 6, 2021
1 parent 000e6c1 commit d68beb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public Hero(int difficulty) {

public int effectiveSTR() {
int weaknessLevel = buffLevel(Weakness.class);
return (int) Math.min(STR() - Math.log(Math.pow(weaknessLevel+1,RemixedDungeon.getDifficultyFactor())), 1);
return (int) Math.max(STR() - Math.log(Math.pow(weaknessLevel+1,RemixedDungeon.getDifficultyFactor())), 1);
}

public void STR(int sTR) {
Expand Down Expand Up @@ -1188,4 +1188,4 @@ public void setPos(int pos) {
public boolean isSpellUser() {
return !heroClass.getMagicAffinity().isEmpty();
}
}
}

0 comments on commit d68beb3

Please sign in to comment.