From a67bbba736bc5e9ae2109d705e38f21b6e7968ae Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:22:11 +0800 Subject: [PATCH] Fix: [EN] Strict color match threshold on RESET_AVAILABLE --- module/research/research.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/research/research.py b/module/research/research.py index 4328c056a..62b35b042 100644 --- a/module/research/research.py +++ b/module/research/research.py @@ -50,7 +50,7 @@ class RewardResearch(ResearchSelector, ResearchQueue, StorageHandler): Returns: bool: If reset success. """ - if not self.appear(RESET_AVAILABLE): + if not self.appear(RESET_AVAILABLE, threshold=10): logger.info('Research reset unavailable') return False @@ -63,7 +63,7 @@ class RewardResearch(ResearchSelector, ResearchQueue, StorageHandler): else: self.device.screenshot() - if self.appear_then_click(RESET_AVAILABLE, interval=10): + if self.appear_then_click(RESET_AVAILABLE, interval=10, threshold=10): continue if self.handle_popup_confirm('RESEARCH_RESET'): executed = True