Skip to content

Commit

Permalink
Fix: Dungeon Complete Event (hannibal002#2456)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunderblade73 authored Sep 4, 2024
1 parent 461fa9c commit 63a78f5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -145,7 +149,6 @@ object DungeonAPI {
group("roomId")
}


fun getColor(level: Int): String = when {
level >= 50 -> "§c§l"
level >= 45 -> "§c"
Expand Down

0 comments on commit 63a78f5

Please sign in to comment.