aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/misc/pets/PetExperienceToolTipConfig.java3
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt6
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 ""