Skip to content

Commit

Permalink
fix #832
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldacl committed Mar 11, 2020
1 parent ec44606 commit c2011df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cn/academy/ability/Skill.java
Expand Up @@ -197,12 +197,12 @@ public float getOverloadConsumeSpeed() {
}

public float getExpIncrSpeed() {
return getOptionalFloat("overload_incr_speed", 1.0f);
return getOptionalFloat("exp_incr_speed", 1.0f);
}

private float getOptionalFloat(String path, float fallback) {
Config cfg = getConfig();
return cfg.hasPath(path) ? (float) cfg.getDouble("damage_scale") : fallback;
return cfg.hasPath(path) ? (float) cfg.getDouble(path) : fallback;
}

private boolean getOptionalBool(String path, boolean fallback) {
Expand Down

0 comments on commit c2011df

Please sign in to comment.