aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-06-20 22:54:17 +0200
committerGitHub <noreply@github.com>2024-06-20 22:54:17 +0200
commit8e46127169a1e06338cc656c254399cf272ea4de (patch)
treedf4f3be71168463c89efd8a889d3df320197a2f5 /src/main/java/at/hannibal2
parent6a55631dbb7e88461622ac975fdeb4bef49c48f6 (diff)
downloadskyhanni-8e46127169a1e06338cc656c254399cf272ea4de.tar.gz
skyhanni-8e46127169a1e06338cc656c254399cf272ea4de.tar.bz2
skyhanni-8e46127169a1e06338cc656c254399cf272ea4de.zip
Fix: Compact Mythic Rabbit (#2093)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt3
2 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt
index d5542fdca..a74338d77 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsCompactChat.kt
@@ -107,9 +107,14 @@ object HoppityEggsCompactChat {
}
HoppityEggsManager.newRabbitFound.matchMatcher(event.message) {
+ newRabbit = true
+ groupOrNull("other")?.let {
+ lastProfit = it
+ compactChat(event)
+ return
+ }
val chocolate = groupOrNull("chocolate")
val perSecond = group("perSecond")
- newRabbit = true
lastProfit = chocolate?.let {
"§6+$it §7and §6+${perSecond}x c/s!"
} ?: "§6+${perSecond}x c/s!"
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
index 0640bfff2..3ecfa9f81 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityEggsManager.kt
@@ -66,10 +66,11 @@ object HoppityEggsManager {
/**
* REGEX-TEST: §d§lNEW RABBIT! §6+2 Chocolate §7and §6+0.003x Chocolate §7per second!
* REGEX-TEST: §d§lNEW RABBIT! §6+0.02x Chocolate §7per second!
+ * REGEX-TEST: §d§lNEW RABBIT! §7Your §dTime Tower §7charge time is now §a7h§7!
*/
val newRabbitFound by ChocolateFactoryAPI.patternGroup.pattern(
"rabbit.found.new",
- "§d§lNEW RABBIT! (§6\\+(?<chocolate>.*) Chocolate §7and )?§6\\+(?<perSecond>.*)x Chocolate §7per second!"
+ "§d§lNEW RABBIT! (?:((§6\\+(?<chocolate>.*) Chocolate §7and )?§6\\+(?<perSecond>.*)x Chocolate §7per second!)|(?<other>.*))"
)
private val noEggsLeftPattern by ChocolateFactoryAPI.patternGroup.pattern(
"egg.noneleft",