diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-31 02:12:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 02:12:34 +0200 |
commit | 3c020f8f3472907e7160268e8ebc8dcc151372e2 (patch) | |
tree | 11bed4f073a85cc949f03770325d0ca1a0a1ecb1 /src/main/java/at/hannibal2/skyhanni | |
parent | 103e967cd3a4cfe2405823f2ff3f8a9d0a8a8fe0 (diff) | |
download | skyhanni-3c020f8f3472907e7160268e8ebc8dcc151372e2.tar.gz skyhanni-3c020f8f3472907e7160268e8ebc8dcc151372e2.tar.bz2 skyhanni-3c020f8f3472907e7160268e8ebc8dcc151372e2.zip |
Fix: HotM Blue Cheese Goblin Omelette (#1953)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HotmData.kt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt index f23795acd..841e39c17 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt @@ -382,8 +382,14 @@ enum class HotmData( group("level").toInt().transformIf({ group("color") == "b" }, { this.minus(1) }) } ?: entry.maxLevel - if (entry.activeLevel > entry.maxLevel) { - throw IllegalStateException("Hotm Perk '${entry.name}' over max level") + // max level + 1 because Blue Cheese Goblin Omelette adds +1 to each level + if (entry.activeLevel > entry.maxLevel + 1) { + ErrorManager.skyHanniError( + "Hotm Perk '${entry.name}' over max level", + "name" to entry.name, + "activeLevel" to entry.activeLevel, + "maxLevel" to entry.maxLevel, + ) } if (entry == PEAK_OF_THE_MOUNTAIN) { |