diff options
author | syeyoung <cyong06@naver.com> | 2021-05-01 15:04:26 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-05-01 15:04:26 +0900 |
commit | a989ca821cf45dd3e44fb4da0a058fa99acaa615 (patch) | |
tree | a1e58b61e135570a7fe291481687b8d3924fd026 /src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java | |
parent | 4d858161e0321c479927e7f28bf516189781914e (diff) | |
download | Skyblock-Dungeons-Guide-a989ca821cf45dd3e44fb4da0a058fa99acaa615.tar.gz Skyblock-Dungeons-Guide-a989ca821cf45dd3e44fb4da0a058fa99acaa615.tar.bz2 Skyblock-Dungeons-Guide-a989ca821cf45dd3e44fb4da0a058fa99acaa615.zip |
fix xps
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java b/src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java index ed23cd7e..d06e0ccc 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java @@ -168,7 +168,7 @@ public class XPUtils { xpCalcResult.remainingXp = totalXp - totalXpEn.getKey(); } Map.Entry<Double, Integer> asdasd = catacombXp.ceilingEntry(totalXp); - xpCalcResult.nextLvXp = asdasd == null ? 0 : asdasd.getKey(); + xpCalcResult.nextLvXp = asdasd == null ? 0 : (asdasd.getKey() - (totalXpEn != null ? totalXpEn.getKey() : 0)); return xpCalcResult; } public static XPCalcResult getSkillXp(Skill skill, double totalXp) { @@ -184,7 +184,7 @@ public class XPUtils { xpCalcResult.remainingXp = totalXp - totalXpEn.getKey(); } Map.Entry<Double, Integer> asdasd = catacombXp.ceilingEntry(totalXp); - xpCalcResult.nextLvXp = asdasd == null ? 0 : asdasd.getKey(); + xpCalcResult.nextLvXp = asdasd == null ? 0 : (asdasd.getKey() - (totalXpEn != null ? totalXpEn.getKey() : 0)); return xpCalcResult; default: totalXpEn = skillXp.floorEntry(totalXp); @@ -197,7 +197,7 @@ public class XPUtils { xpCalcResult.remainingXp = totalXp - totalXpEn.getKey(); } asdasd = catacombXp.ceilingEntry(totalXp); - xpCalcResult.nextLvXp = asdasd == null ? 0 : asdasd.getKey(); + xpCalcResult.nextLvXp = asdasd == null ? 0 : (asdasd.getKey() - (totalXpEn != null ? totalXpEn.getKey() : 0)); return xpCalcResult; } } |