aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-05-29 09:36:51 +0200
committerGitHub <noreply@github.com>2024-05-29 09:36:51 +0200
commit8081f9d7a395960880114c4a2fd9f9fb169ff385 (patch)
treeb32fe30d8028af8f7350ff462cb548cda4da85fb /src/main/java/at/hannibal2/skyhanni/features
parentefc71b6847f252cccd0ccf536a6db6e9fe6fad96 (diff)
downloadskyhanni-8081f9d7a395960880114c4a2fd9f9fb169ff385.tar.gz
skyhanni-8081f9d7a395960880114c4a2fd9f9fb169ff385.tar.bz2
skyhanni-8081f9d7a395960880114c4a2fd9f9fb169ff385.zip
Improvement: Oringo Pet Rarity Message (#1862)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/RareDropMessages.kt11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/RareDropMessages.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/RareDropMessages.kt
index 48bc90934..e4145c98f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/chat/RareDropMessages.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/chat/RareDropMessages.kt
@@ -46,8 +46,17 @@ class RareDropMessages {
"(?<start>.*has obtained (?:§.)*\\[Lvl 1] )(?:§.)*§(?<rarityColor>.)(?<petName>[^§(.]+)(?<end>.*)"
)
+ /**
+ * REGEX-TEST: §e[NPC] Oringo§f: §b✆ §f§r§8• §fBlue Whale Pet
+ * REGEX-TEST: §e[NPC] Oringo§f: §b✆ §f§r§8• §5Giraffe Pet
+ */
+ private val oringoPattern by chatGroup.pattern(
+ "pet.oringopattern",
+ "(?<start>§e\\[NPC] Oringo§f: §b✆ §f§r§8• )§(?<rarityColor>.)(?<petName>[^§(.]+)(?<end> Pet)"
+ )
+
private val patterns = listOf(
- petDroppedPattern, petFishedPattern, petClaimedPattern, petObtainedPattern
+ petDroppedPattern, petFishedPattern, petClaimedPattern, petObtainedPattern, oringoPattern
)
private val config get() = SkyHanniMod.feature.chat.petRarityDropMessage