From 94ecd76cb22486627b75658e1925b5ced53ce6d3 Mon Sep 17 00:00:00 2001 From: Obsidian <108832807+Obsidianninja11@users.noreply.github.com> Date: Sun, 17 Mar 2024 10:46:52 -0800 Subject: Removed Feature: Removed max pet xp tooltip (#1132) --- .../config/features/misc/pets/PetExperienceToolTipConfig.java | 3 +-- src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetExperienceToolTipConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetExperienceToolTipConfig.java index 71ad44ba3..2e5f34c4c 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetExperienceToolTipConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetExperienceToolTipConfig.java @@ -8,12 +8,11 @@ import io.github.moulberry.moulconfig.annotations.ConfigOption; public class PetExperienceToolTipConfig { @Expose - @ConfigOption(name = "Enabled", desc = "Show the full pet exp and the progress to level 100 (ignoring rarity) when hovering over a pet while pressing shift key.") + @ConfigOption(name = "Enabled", desc = "Show the progress to level 100 (ignoring rarity) when hovering over a pet while pressing shift key.") @ConfigEditorBoolean @FeatureToggle public boolean petDisplay = true; - @Expose @ConfigOption(name = "Show Always", desc = "Show this info always, even if not pressing shift key.") @ConfigEditorBoolean 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 29a149830..2b3505f18 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt @@ -45,10 +45,8 @@ class PetExpTooltip { val percentage = petExperience / maxXp val percentageFormat = LorenzUtils.formatPercentage(percentage) - event.toolTip.add(index, " ") - if (percentage >= 1) { - event.toolTip.add(index, "§7Total experience: §e${NumberUtil.format(petExperience)}") - } else { + if (percentage < 1) { + event.toolTip.add(index, " ") val progressBar = StringUtils.progressBar(percentage) val isBelowLegendary = itemStack.getItemRarityOrNull()?.let { it < LorenzRarity.LEGENDARY } ?: false val addLegendaryColor = if (isBelowLegendary) "§6" else "" -- cgit