diff options
author | Luna <luna@alexia.lol> | 2024-06-08 19:41:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-08 19:41:21 +0200 |
commit | 5bb98aed61e4dadba12d203aad770d0408171ef3 (patch) | |
tree | acacb4490a48b43703d9d8fd429408971fdb2fab /src/main/java/at/hannibal2/skyhanni/data/HotmData.kt | |
parent | a2f29b2bfe846c9d0cd2a45b2b8352bab556da37 (diff) | |
download | skyhanni-5bb98aed61e4dadba12d203aad770d0408171ef3.tar.gz skyhanni-5bb98aed61e4dadba12d203aad770d0408171ef3.tar.bz2 skyhanni-5bb98aed61e4dadba12d203aad770d0408171ef3.zip |
Improvement: Auto-detect whether Great Explorer is maxed (#2032)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/HotmData.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HotmData.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt index 51b86cf92..c1ae1390a 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt @@ -247,6 +247,9 @@ enum class HotmData( storage?.perks?.computeIfAbsent(this.name) { HotmTree.HotmPerk() }?.level = value } + val isMaxLevel: Boolean + get() = activeLevel >= maxLevel // >= to account for +1 from Blue Cheese + private fun blueEgg() = if (this != PEAK_OF_THE_MOUNTAIN && maxLevel != 1 && HotmAPI.isBlueEggActive) 1 else 0 var enabled: Boolean |