aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/utils/XPUtils.java6
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;
}
}