aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2022-12-22 16:24:34 +0100
committerGitHub <noreply@github.com>2022-12-22 16:24:34 +0100
commit0aefc9b967c1cdcc61e46dc822995e2f507838ab (patch)
tree352aa1df7ccb1f5a1553c58233367992bb69b5e1 /src/main/kotlin
parent6341660866cd76cf64bb65ee406f6aebfe146413 (diff)
downloadNotEnoughUpdates-0aefc9b967c1cdcc61e46dc822995e2f507838ab.tar.gz
NotEnoughUpdates-0aefc9b967c1cdcc61e46dc822995e2f507838ab.tar.bz2
NotEnoughUpdates-0aefc9b967c1cdcc61e46dc822995e2f507838ab.zip
PetLeveling: Fix non legendary pets being able to be leveled above 100 (#499)
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/io/github/moulberry/notenoughupdates/util/PetLeveling.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/PetLeveling.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/PetLeveling.kt
index e7d29642..0a9e37b9 100644
--- a/src/main/kotlin/io/github/moulberry/notenoughupdates/util/PetLeveling.kt
+++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/util/PetLeveling.kt
@@ -105,7 +105,7 @@ object PetLeveling {
}
maxLevel = customLeveling["max_level"]?.asInt ?: maxLevel
}
- return ExpLadder(levels.drop(offset).take(maxLevel))
+ return ExpLadder(levels.drop(offset).take(maxLevel - 1))
}
}