From 3c020f8f3472907e7160268e8ebc8dcc151372e2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Fri, 31 May 2024 02:12:34 +0200 Subject: Fix: HotM Blue Cheese Goblin Omelette (#1953) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/data/HotmData.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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) { -- cgit