From 63a78f593b27f0d4787c509b9c88d62de3331d01 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:22:00 +0200 Subject: Fix: Dungeon Complete Event (#2456) --- src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonAPI.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon') 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: §.(?:(?\\d+)m )?(?\\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 )?(?M?[IV]{1,3}|Entrance)", + "§.\\s+§.§.(?:Master Mode )?The Catacombs §.§.- §.§.(?: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" -- cgit