aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-05-07 12:23:34 +0200
committerGitHub <noreply@github.com>2024-05-07 12:23:34 +0200
commitd4209779c44b45c3677f925752c1726d34a2421d (patch)
tree00af35d919537193c4a01af1413aa5ad911bd9e6 /src/main
parent5f2c39ccb9cc4af169f7a7ee4408e38fee49fbf2 (diff)
downloadskyhanni-d4209779c44b45c3677f925752c1726d34a2421d.tar.gz
skyhanni-d4209779c44b45c3677f925752c1726d34a2421d.tar.bz2
skyhanni-d4209779c44b45c3677f925752c1726d34a2421d.zip
Fix: Rift Hay Eaten Scoreboard Line (#1721)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardPattern.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/UnknownLinesHandler.kt1
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,
)