diff options
Diffstat (limited to 'src/main')
-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() |