aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt
index 7154af4a1..3a09d1435 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryBarnManager.kt
@@ -25,6 +25,14 @@ object ChocolateFactoryBarnManager {
"§7§lDUPLICATE RABBIT! §6\\+[\\d,]+ Chocolate"
)
+ /**
+ * REGEX-TEST: §c§lBARN FULL! §fOlivette §7got §ccrushed§7! §6+290,241 Chocolate
+ */
+ private val rabbitCrashedPattern by ChocolateFactoryAPI.patternGroup.pattern(
+ "rabbit.duplicate",
+ "§c§lBARN FULL! §f\\D+ §7got §ccrushed§7! §6.+ Chocolate"
+ )
+
var barnFull = false
private var lastBarnFullWarning = SimpleTimeMark.farPast()
@@ -42,6 +50,10 @@ object ChocolateFactoryBarnManager {
rabbitDuplicatePattern.matchMatcher(event.message) {
HoppityEggsManager.shareWaypointPrompt()
}
+
+ rabbitCrashedPattern.matchMatcher(event.message) {
+ HoppityEggsManager.shareWaypointPrompt()
+ }
}
fun trySendBarnFullMessage() {