diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-01-11 12:40:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 18:40:01 +0100 |
commit | 9b16887784047faafa2cdec6ff029e1de0a815ae (patch) | |
tree | e77263da073aa7fb682379f40c70272b9e5aa11c /src/main/java/at/hannibal2 | |
parent | be11baedddac4ba7231de5b8f82417991725d038 (diff) | |
download | skyhanni-9b16887784047faafa2cdec6ff029e1de0a815ae.tar.gz skyhanni-9b16887784047faafa2cdec6ff029e1de0a815ae.tar.bz2 skyhanni-9b16887784047faafa2cdec6ff029e1de0a815ae.zip |
fix patterns (#908)
Make Repo Pattern keys more consistent for Farming Gear. #908
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt index 3a54b0b1e..dd457688a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/fortuneguide/CaptureFarmingGear.kt @@ -40,8 +40,15 @@ class CaptureFarmingGear { private val cakePattern = "(?:Big )?Yum! You (?:gain|refresh) [+]5☘ Farming Fortune for 48 hours!".toPattern() - private val tierPattern by RepoPattern.pattern("garden.uniqueVisitors.tier", "§7Progress to Tier (?<nextTier>\\d+):.*") - private val tierProgressPattern by RepoPattern.pattern("garden.uniqueVisitors.tierProgress", ".* §e(?<having>.*)§6/(?<total>.*)") + private val patternGroup = RepoPattern.group("garden.fortuneguide.capture") + private val tierPattern by patternGroup.pattern( + "uniquevisitors.tier", + "§7Progress to Tier (?<nextTier>\\d+):.*" + ) + private val tierProgressPattern by patternGroup.pattern( + "uniquevisitors.tierprogress", + ".* §e(?<having>.*)§6/(?<total>.*)" + ) companion object { private val strengthPattern = " Strength: §r§c❁(?<strength>.*)".toPattern() |