From 9b16887784047faafa2cdec6ff029e1de0a815ae Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Thu, 11 Jan 2024 12:40:01 -0500 Subject: fix patterns (#908) Make Repo Pattern keys more consistent for Farming Gear. #908 --- .../features/garden/fortuneguide/CaptureFarmingGear.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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 (?\\d+):.*") - private val tierProgressPattern by RepoPattern.pattern("garden.uniqueVisitors.tierProgress", ".* §e(?.*)§6/(?.*)") + private val patternGroup = RepoPattern.group("garden.fortuneguide.capture") + private val tierPattern by patternGroup.pattern( + "uniquevisitors.tier", + "§7Progress to Tier (?\\d+):.*" + ) + private val tierProgressPattern by patternGroup.pattern( + "uniquevisitors.tierprogress", + ".* §e(?.*)§6/(?.*)" + ) companion object { private val strengthPattern = " Strength: §r§c❁(?.*)".toPattern() -- cgit