diff options
author | Obsidian <108832807+Obsidianninja11@users.noreply.github.com> | 2024-03-17 10:46:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 19:46:52 +0100 |
commit | 94ecd76cb22486627b75658e1925b5ced53ce6d3 (patch) | |
tree | 18f846cff3511c31215f9ba50085294f901a1212 /src/main/java | |
parent | bf462fa2aa335794b86df58ffcfa6dd8ea4f04f2 (diff) | |
download | skyhanni-94ecd76cb22486627b75658e1925b5ced53ce6d3.tar.gz skyhanni-94ecd76cb22486627b75658e1925b5ced53ce6d3.tar.bz2 skyhanni-94ecd76cb22486627b75658e1925b5ced53ce6d3.zip |
Removed Feature: Removed max pet xp tooltip (#1132)
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetExperienceToolTipConfig.java | 3 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt | 6 |
2 files changed, 3 insertions, 6 deletions
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 "" |