diff options
author | J10a1n15 <45315647+j10a1n15@users.noreply.github.com> | 2024-04-15 20:18:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-15 20:18:53 +0200 |
commit | e20838c25789e82ad89e35d753efd43209b15447 (patch) | |
tree | cc42e2d6f74e448f2cc1c2fc39f5c3c0ca6e5775 /src/main/java/at/hannibal2 | |
parent | 34e9f01594e498ed16ebe55f51ba990948635456 (diff) | |
download | skyhanni-e20838c25789e82ad89e35d753efd43209b15447.tar.gz skyhanni-e20838c25789e82ad89e35d753efd43209b15447.tar.bz2 skyhanni-e20838c25789e82ad89e35d753efd43209b15447.zip |
Improvement: Add Fortunate Freezing Bonus to Mining Events in Custom Scoreboard (#1453)
Diffstat (limited to 'src/main/java/at/hannibal2')
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 -> |