diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-09-09 11:43:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 11:43:01 +0200 |
commit | 6b31a0143364c11aada80f511413eb87e0ec7b92 (patch) | |
tree | 1605f6c9b1056bf8bcd6b2625bdc9fa8f6e11e78 | |
parent | c578c393b9ff882563a4e9d380a94662fa1ce2fb (diff) | |
download | skyhanni-6b31a0143364c11aada80f511413eb87e0ec7b92.tar.gz skyhanni-6b31a0143364c11aada80f511413eb87e0ec7b92.tar.bz2 skyhanni-6b31a0143364c11aada80f511413eb87e0ec7b92.zip |
Fix: Scoreboard Error with Barry Protestors (#2480)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
3 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt index d35952cb3..efe7c953d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvent.kt @@ -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) }) diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt index 390d34e59..9e2694ec0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt @@ -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") /** diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt index 2c0ba2c86..4e102ee34 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt @@ -126,6 +126,8 @@ object UnknownLinesHandler { SbPattern.riftHayEatenPattern, SbPattern.fossilDustPattern, SbPattern.cluesPattern, + SbPattern.barryProtestorsQuestlinePattern, + SbPattern.barryProtestorsHandledPattern, SbPattern.carnivalPattern, SbPattern.carnivalTasksPattern, SbPattern.carnivalTokensPattern, |