1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Update JobProgression.java

This commit is contained in:
montlikadani 2018-08-16 18:18:21 +02:00 committed by GitHub
parent 5b70bff727
commit b7ec748d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,14 +148,14 @@ public class JobProgression {
* Reloads max experience * Reloads max experience
*/ */
public void reloadMaxExperience() { public void reloadMaxExperience() {
HashMap<String, Double> param = new HashMap<String, Double>(); HashMap<String, Double> param = new HashMap<>();
param.put("joblevel", (double) level); param.put("joblevel", (double) level);
param.put("numjobs", (double) jPlayer.getJobProgression().size()); param.put("numjobs", (double) jPlayer.getJobProgression().size());
this.maxExperience = (int) job.getMaxExp(param); this.maxExperience = (int) job.getMaxExp(param);
} }
public int getMaxExperience(int level) { public int getMaxExperience(int level) {
HashMap<String, Double> param = new HashMap<String, Double>(); HashMap<String, Double> param = new HashMap<>();
param.put("joblevel", (double) level); param.put("joblevel", (double) level);
param.put("numjobs", (double) jPlayer.getJobProgression().size()); param.put("numjobs", (double) jPlayer.getJobProgression().size());
return (int) job.getMaxExp(param); return (int) job.getMaxExp(param);