Skip to content

Commit

Permalink
Fix: HotM Blue Cheese Goblin Omelette (hannibal002#1953)
Browse files Browse the repository at this point in the history
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
  • Loading branch information
hannibal002 and hannibal002 authored May 31, 2024
1 parent 103e967 commit 3c020f8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3c020f8

Please sign in to comment.