diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-05-07 12:23:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 12:23:34 +0200 |
commit | d4209779c44b45c3677f925752c1726d34a2421d (patch) | |
tree | 00af35d919537193c4a01af1413aa5ad911bd9e6 /src/main/java | |
parent | 5f2c39ccb9cc4af169f7a7ee4408e38fee49fbf2 (diff) | |
download | skyhanni-d4209779c44b45c3677f925752c1726d34a2421d.tar.gz skyhanni-d4209779c44b45c3677f925752c1726d34a2421d.tar.bz2 skyhanni-d4209779c44b45c3677f925752c1726d34a2421d.zip |
Fix: Rift Hay Eaten Scoreboard Line (#1721)
Diffstat (limited to 'src/main/java')
3 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt index 4da038695..7acee4ddc 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt @@ -503,6 +503,7 @@ private fun getRiftLines() = getSbLines().filter { line -> || SbPattern.timeLeftPattern.matches(line) || SbPattern.riftHotdogEatenPattern.matches(line) || SbPattern.riftAveikxPattern.matches(line) + || SbPattern.riftHayEatenPattern.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 e4297014a..bbe5f990d 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 @@ -415,6 +415,10 @@ object ScoreboardPattern { "aveikx", "Time spent sitting|with Ävaeìkx: .*" ) + val riftHayEatenPattern by riftSb.pattern( + "hayeaten", + "^Hay Eaten: §.[\\d,.]+/[\\d,.]+\$" + ) // Stats from the tablist private val tablistGroup = group.group("tablist") 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 1af663c7a..7a33387e8 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 @@ -118,6 +118,7 @@ object UnknownLinesHandler { SbPattern.queuePositionPattern, SbPattern.fortunateFreezingBonusPattern, SbPattern.riftAveikxPattern, + SbPattern.riftHayEatenPattern, SbPattern.fossilDustPattern, ) |