aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-09-04 11:22:00 +0200
committerGitHub <noreply@github.com>2024-09-04 11:22:00 +0200
commit63a78f593b27f0d4787c509b9c88d62de3331d01 (patch)
treeb51e1d4dcdfc739acdd85fcb724b0b34cbf9a7db /src/main/java
parent461fa9c4ece3a85b9cac7f7247fcc0c71a4a31e3 (diff)
downloadskyhanni-63a78f593b27f0d4787c509b9c88d62de3331d01.tar.gz
skyhanni-63a78f593b27f0d4787c509b9c88d62de3331d01.tar.bz2
skyhanni-63a78f593b27f0d4787c509b9c88d62de3331d01.zip
Fix: Dungeon Complete Event (#2456)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
index f8d432613..50a3ff8f6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt
@@ -68,9 +68,13 @@ object DungeonAPI {
"Time Elapsed: §.(?:(?<minutes>\\d+)m )?(?<seconds>\\d+)s",
)
+ /**
+ * REGEX-TEST: §f §r§cMaster Mode The Catacombs §r§8- §r§eFloor VII
+ * REGEX-TEST: §f §r§cThe Catacombs §r§8- §r§eFloor V
+ */
private val dungeonComplete by patternGroup.pattern(
"complete",
- "§.\\s+§.§.(?:The|Master Mode) Catacombs §.§.- §.§.(?:Floor )?(?<floor>M?[IV]{1,3}|Entrance)",
+ "§.\\s+§.§.(?:Master Mode )?The Catacombs §.§.- §.§.(?:Floor )?(?<floor>M?[IV]{1,3}|Entrance)",
)
private val dungeonRoomPattern by patternGroup.pattern(
"room",
@@ -145,7 +149,6 @@ object DungeonAPI {
group("roomId")
}
-
fun getColor(level: Int): String = when {
level >= 50 -> "§c§l"
level >= 45 -> "§c"