aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 57d95665f..6cde610cb 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 {
add(getSbLines().first { SbPattern.yourGoblinKillsPattern.matches(it) })
add(getSbLines().first { SbPattern.remainingGoblinPattern.matches(it) })
}
+
+ // Fortunate Freezing
+ if (getSbLines().any { SbPattern.fortunateFreezingBonusPattern.matches(it) }) {
+ add(getSbLines().first { SbPattern.fortunateFreezingBonusPattern.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 faeebb721..1f872d339 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
@@ -231,6 +231,10 @@ object ScoreboardPattern {
"mineshaft.notstarted",
"(?:§.)*Not started.*"
)
+ val fortunateFreezingBonusPattern by miningSb.pattern(
+ "fortunatefreezing.bonus",
+ "Event Bonus: §6\\+\\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 e40e63b12..e810b680e 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
@@ -116,6 +116,7 @@ object UnknownLinesHandler {
SbPattern.mineshaftNotStartedPattern,
SbPattern.queuePattern,
SbPattern.queuePositionPattern,
+ SbPattern.fortunateFreezingBonusPattern,
)
unknownLines = unknownLines.filterNot { line ->