aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/gui/customscoreboard/ScoreboardEvents.kt5
-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, 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 ->