aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-07-06 08:48:58 +0200
committerGitHub <noreply@github.com>2024-07-06 08:48:58 +0200
commitdf6ff252c99c99aa12790ef72fc5abaa1d4c84c0 (patch)
treeb4ff5b0b642119385f84a2d67a5c57b0b17c0813 /src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
parent30d701c8cceaa532a9b0eee27f458feaf45aa201 (diff)
downloadskyhanni-df6ff252c99c99aa12790ef72fc5abaa1d4c84c0.tar.gz
skyhanni-df6ff252c99c99aa12790ef72fc5abaa1d4c84c0.tar.bz2
skyhanni-df6ff252c99c99aa12790ef72fc5abaa1d4c84c0.zip
Fix: Powder Percentage CW Conflict (#2186)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/HotmData.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HotmData.kt8
1 files changed, 6 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 f86cc1de8..f3a2189b0 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HotmData.kt
@@ -409,9 +409,13 @@ enum class HotmData(
"Heart of the Mountain",
)
+ /**
+ * REGEX-TEST: §5§o§7Level 1§8/50 §7(§b0 §l0%§7):skull:
+ * REGEX-TEST: §7Level 1§8/50
+ */
private val levelPattern by patternGroup.pattern(
"perk.level",
- "§(?<color>.)Level (?<level>\\d+).*",
+ "(?:§.)*§(?<color>.)Level (?<level>\\d+).*",
)
private val notUnlockedPattern by patternGroup.pattern(
@@ -426,7 +430,7 @@ enum class HotmData(
private val disabledPattern by patternGroup.pattern(
"perk.disabled",
"§c§lDISABLED|§7§eClick to select!",
- ) // unused for now since the assumption is when enabled isn't found it is disabled,
+ ) // unused for now since the assumption is when enabled isn't found, it is disabled,
// but the value might be useful in the future or for debugging
val perkCostPattern by patternGroup.pattern(