diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-05-29 09:36:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 09:36:51 +0200 |
commit | 8081f9d7a395960880114c4a2fd9f9fb169ff385 (patch) | |
tree | b32fe30d8028af8f7350ff462cb548cda4da85fb /src/main/java/at/hannibal2 | |
parent | efc71b6847f252cccd0ccf536a6db6e9fe6fad96 (diff) | |
download | skyhanni-8081f9d7a395960880114c4a2fd9f9fb169ff385.tar.gz skyhanni-8081f9d7a395960880114c4a2fd9f9fb169ff385.tar.bz2 skyhanni-8081f9d7a395960880114c4a2fd9f9fb169ff385.zip |
Improvement: Oringo Pet Rarity Message (#1862)
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/RareDropMessages.kt | 11 |
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 |