aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-12-19 19:05:20 +0100
committernea <romangraef@gmail.com>2022-12-19 19:05:20 +0100
commit4a1ee6ae56b5f5b9cab8ad61ef6b26f4aceec694 (patch)
tree9e331beffb5046752b8c9a6218a8a2ca2a666aee /src/main
parentc6330fc85211706ee6a3c212bfa50005981e3799 (diff)
downloadNotEnoughUpdates-4a1ee6ae56b5f5b9cab8ad61ef6b26f4aceec694.tar.gz
NotEnoughUpdates-4a1ee6ae56b5f5b9cab8ad61ef6b26f4aceec694.tar.bz2
NotEnoughUpdates-4a1ee6ae56b5f5b9cab8ad61ef6b26f4aceec694.zip
PetLeveling: Fix non legendary pets being able to be leveled above 100fix/epicpets
Also adds tests for this
Diffstat (limited to 'src/main')
-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))
}
}