summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/api
diff options
context:
space:
mode:
authorHiZe <super@hize.be>2024-02-25 20:41:02 +0100
committerGitHub <noreply@github.com>2024-02-25 20:41:02 +0100
commitea2a886070f6105e4600f604ffd685e78f8ce101 (patch)
tree1c1e2b3bdb8cb6358d8f87e790a7498d73d5ea32 /src/main/java/at/hannibal2/skyhanni/api
parentce3ab82ad811dc76781d3113765325461045efbd (diff)
downloadskyhanni-ea2a886070f6105e4600f604ffd685e78f8ce101.tar.gz
skyhanni-ea2a886070f6105e4600f604ffd685e78f8ce101.tar.bz2
skyhanni-ea2a886070f6105e4600f604ffd685e78f8ce101.zip
Fixed skill display stuff #1058
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/api')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
index 45480aa4e..b21c10d41 100644
--- a/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/api/SkillAPI.kt
@@ -403,7 +403,7 @@ object SkillAPI {
val level = getLevel(xp)
ChatUtils.chat("With §b${xp.addSeparators()} §eXP you would be level §b$level")
} else {
- val (overflowLevel, current, needed, _) = calculateOverFlow(xp)
+ val (overflowLevel, current, needed, _) = calculateOverFlow((xp) - XP_NEEDED_FOR_60)
ChatUtils.chat(
"With §b${xp.addSeparators()} §eXP you would be level §b$overflowLevel " +
"§ewith progress (§b${current.addSeparators()}§e/§b${needed.addSeparators()}§e) XP"
@@ -423,7 +423,7 @@ object SkillAPI {
ChatUtils.chat("You need §b${neededXp.addSeparators()} §eXP to be level §b${level.toDouble()}")
} else {
val base = levelingMap.values.sum().toLong()
- val neededXP = xpRequiredForLevel(level.toDouble()) + base
+ val neededXP = xpRequiredForLevel(level.toDouble())
ChatUtils.chat("You need §b${neededXP.addSeparators()} §eXP to be level §b${level.toDouble()}")
}
return