From 5bb98aed61e4dadba12d203aad770d0408171ef3 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 8 Jun 2024 19:41:21 +0200 Subject: Improvement: Auto-detect whether Great Explorer is maxed (#2032) --- src/main/java/at/hannibal2/skyhanni/data/HotmData.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/data/HotmData.kt') 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 -- cgit