From d4209779c44b45c3677f925752c1726d34a2421d Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Tue, 7 May 2024 12:23:34 +0200 Subject: Fix: Rift Hay Eaten Scoreboard Line (#1721) --- .../skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt | 1 + .../skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt | 4 ++++ .../skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt | 1 + 3 files changed, 6 insertions(+) (limited to 'src/main/java') 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 = 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, ) -- cgit