diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-12-22 16:24:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 16:24:34 +0100 |
commit | 0aefc9b967c1cdcc61e46dc822995e2f507838ab (patch) | |
tree | 352aa1df7ccb1f5a1553c58233367992bb69b5e1 /src/test/kotlin/io | |
parent | 6341660866cd76cf64bb65ee406f6aebfe146413 (diff) | |
download | NotEnoughUpdates-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/test/kotlin/io')
-rw-r--r-- | src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt index 43a0e3fd..d91ca09d 100644 --- a/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt +++ b/src/test/kotlin/io/github/moulberry/notenoughupdates/util/PetLevelingTest.kt @@ -337,6 +337,25 @@ internal class PetLevelingTest { PetLeveling.petConstants = testJson } + + @Test + fun testMaxedLevel200Pet() { + val leveling = PetLeveling.getPetLevelingForPet0("GOLDEN_DRAGON", PetInfoOverlay.Rarity.LEGENDARY) + Assertions.assertEquals(200, leveling.cumulativeLevelCost.size) + val level = leveling.getPetLevel(219451664.0) + Assertions.assertEquals(200, level.maxLevel) + Assertions.assertEquals(200, level.currentLevel) + } + + @Test + fun testNonLegendaryMaxLevelPet() { + val leveling = PetLeveling.getPetLevelingForPet0("GUARDIAN", PetInfoOverlay.Rarity.EPIC) + Assertions.assertEquals(100, leveling.cumulativeLevelCost.size) + val level = leveling.getPetLevel(67790664.0) + Assertions.assertEquals(100, level.currentLevel) + Assertions.assertEquals(100, level.maxLevel) + } + @Test fun testPetLevelGrandmaWolf() { val leveling = PetLeveling.getPetLevelingForPet0("GRANDMA_WOLF", PetInfoOverlay.Rarity.LEGENDARY) |