Skip to content

Commit

Permalink
Fix: Scoreboard Error with Barry Protestors (hannibal002#2480)
Browse files Browse the repository at this point in the history
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
  • Loading branch information
2 people authored and MTOnline69 committed Sep 10, 2024
1 parent bbbdaf9 commit d9f5007
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ private fun getRiftLines() = getSbLines().filter { line ->
|| SbPattern.riftAveikxPattern.matches(line)
|| SbPattern.riftHayEatenPattern.matches(line)
|| SbPattern.cluesPattern.matches(line)
|| SbPattern.barryProtestorsQuestlinePattern.matches(line)
|| SbPattern.barryProtestorsHandledPattern.matches(line)
}

private fun getEssenceLines(): List<String> = listOf(getSbLines().first { SbPattern.essencePattern.matches(it) })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,23 @@ object ScoreboardPattern {
"Clues: §.\\d+/\\d+",
)

/**
* REGEX-TEST: §eFirst Up
* REGEX-TEST: Find and talk with Barry
*/
val barryProtestorsQuestlinePattern by riftSb.pattern(
"protestors.quest",
"§eFirst Up|Find and talk with Barry",
)

/**
* REGEX-TEST: Protestors handled: §b5/7
*/
val barryProtestorsHandledPattern by riftSb.pattern(
"protestors.handled",
"Protestors handled: §b\\d+\\/\\d+",
)

private val carnivalSb = scoreboardGroup.group("carnival")

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ object UnknownLinesHandler {
SbPattern.riftHayEatenPattern,
SbPattern.fossilDustPattern,
SbPattern.cluesPattern,
SbPattern.barryProtestorsQuestlinePattern,
SbPattern.barryProtestorsHandledPattern,
SbPattern.carnivalPattern,
SbPattern.carnivalTasksPattern,
SbPattern.carnivalTokensPattern,
Expand Down

0 comments on commit d9f5007

Please sign in to comment.