diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-04-29 13:47:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 13:47:52 +0200 |
commit | 5902fe91dfa50d2f1fe793bea7064aa5af877c13 (patch) | |
tree | a26b6cd41759ce5874bf182cd00e971933f4a585 /src/main/java/at/hannibal2/skyhanni | |
parent | fb85e2a9912575712aa80819005ab5ae444c63f3 (diff) | |
download | skyhanni-5902fe91dfa50d2f1fe793bea7064aa5af877c13.tar.gz skyhanni-5902fe91dfa50d2f1fe793bea7064aa5af877c13.tar.bz2 skyhanni-5902fe91dfa50d2f1fe793bea7064aa5af877c13.zip |
Fix: Missing Fossil Dust Line in Custom Scoreboard (#1586)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
3 files changed, 10 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 f4bb793e5..f9b862e59 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 @@ -488,6 +488,11 @@ private fun getMiningEventsLines() = buildList { if (getSbLines().any { SbPattern.fortunateFreezingBonusPattern.matches(it) }) { add(getSbLines().first { SbPattern.fortunateFreezingBonusPattern.matches(it) }) } + + // Fossil Dust + if (getSbLines().any { SbPattern.fossilDustPattern.matches(it) }) { + add(getSbLines().first { SbPattern.fossilDustPattern.matches(it) }) + } } private fun getMiningEventsShowWhen(): Boolean { 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 42040f7c8..fd15e2131 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 @@ -235,6 +235,10 @@ object ScoreboardPattern { "fortunatefreezing.bonus", "Event Bonus: §6\\+\\d+☘" ) + val fossilDustPattern by miningSb.pattern( + "fossildust", + "Fossil Dust: §f[\\d.,]+.*" + ) // combat private val combatSb = scoreboardGroup.group("combat") 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 954cb2860..25eb68073 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.fossilDustPattern, ) unknownLines = unknownLines.filterNot { line -> |