aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt
index 7b54d9d95..3ba76f238 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt
@@ -34,7 +34,7 @@ class PetExpTooltip {
) ?: return
val maxLevel = ItemUtils.maxPetLevel(name)
- val maxXp = if (maxLevel == 200) 210255385 else 25353230L
+ val maxXp = maxPetExp(name) // lvl 100 legendary
val percentage = petExperience / maxXp
val percentageFormat = LorenzUtils.formatPercentage(percentage)
@@ -48,4 +48,11 @@ class PetExpTooltip {
event.toolTip.add(index, "§7Progress to Level $maxLevel: §e$percentageFormat")
}
}
+
+ private fun maxPetExp(petName: String) = when {
+ petName.contains("Golden Dragon") -> 210_255_385 // lvl 200 legendary
+ petName.contains("Bingo") -> 5_624_785 // lvl 100 common
+
+ else -> 25_353_230 // lvl 100 legendary
+ }
}