aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-09 13:09:11 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-09 13:09:11 +0200
commitc54eccb4204d0d1212b71020b05c1c01d5be0fe1 (patch)
treec92c987e7fd476c1a926c89cbfe66b417204ff14 /src/main/java/at/hannibal2
parentc188917ff25bb8154298e09b3eb1347e3cd9cee6 (diff)
downloadskyhanni-c54eccb4204d0d1212b71020b05c1c01d5be0fe1.tar.gz
skyhanni-c54eccb4204d0d1212b71020b05c1c01d5be0fe1.tar.bz2
skyhanni-c54eccb4204d0d1212b71020b05c1c01d5be0fe1.zip
Added an option to only show level 100 for golden dragon in pet experience tooltip
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
index 2a9bce6bc..bef52f688 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java
@@ -26,7 +26,7 @@ public class MiscConfig {
public boolean petDisplay = false;
@Expose
- @ConfigOption(name = "Pet Experience Tooltip", desc = "Show the currently active pet.")
+ @ConfigOption(name = "Pet Experience Tooltip", desc = "")
@ConfigAccordionId(id = 0)
@Accordion
public PetExperienceToolTipConfig petExperienceToolTip = new PetExperienceToolTipConfig();
@@ -44,6 +44,11 @@ public class MiscConfig {
@ConfigEditorBoolean
public boolean showAlways = false;
+ @Expose
+ @ConfigOption(name = "GDrag 200", desc = "Show for Golden Dragon the exp needed for level 200.")
+ @ConfigEditorBoolean
+ public boolean goldenDragon200 = true;
+
}
@Expose
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 53e58e4bf..7a96c86d2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/PetExpTooltip.kt
@@ -50,7 +50,7 @@ class PetExpTooltip {
}
private fun maxPetExp(petName: String) = when {
- petName.contains("Golden Dragon") -> 210_255_385 // lvl 200 legendary
+ petName.contains("Golden Dragon") && config.goldenDragon200 -> 210_255_385 // lvl 200 legendary
petName.contains("Bingo") -> 5_624_785 // lvl 100 common
else -> 25_353_230 // lvl 100 legendary