Skip to content

Commit

Permalink
Fix: Custom Scoreboard Error in Dungeon Queue (hannibal002#2441)
Browse files Browse the repository at this point in the history
  • Loading branch information
j10a1n15 authored Sep 3, 2024
1 parent 602aab4 commit 141d2f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ private fun getEssenceShowWhen(): Boolean = SbPattern.essencePattern.anyMatches(

private fun getQueueLines(): List<String> =
listOf(getSbLines().first { SbPattern.queuePattern.matches(it) }) +
(getSbLines().first { SbPattern.queueTierPattern.matches(it) }) +
(getSbLines().first { SbPattern.queuePositionPattern.matches(it) })

private fun getQueueShowWhen(): Boolean = SbPattern.queuePattern.anyMatches(getSbLines())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ object ScoreboardPattern {
"queued",
"Queued:.*",
)

/**
* REGEX-TEST: Tier: §eFloor VI
*/
val queueTierPattern by miscSb.pattern(
"queuetier",
"Tier: §e.*",
)
val queuePositionPattern by miscSb.pattern(
"queueposition",
"Position: (?:§.)*#\\d+ (?:§.)*Since: (?:§.)*.*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ object UnknownLinesHandler {
SbPattern.riftHotdogEatenPattern,
SbPattern.mineshaftNotStartedPattern,
SbPattern.queuePattern,
SbPattern.queueTierPattern,
SbPattern.queuePositionPattern,
SbPattern.fortunateFreezingBonusPattern,
SbPattern.riftAveikxPattern,
Expand Down

0 comments on commit 141d2f3

Please sign in to comment.