mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-07 07:07:15 +08:00
Fix: [EN] Strict color match threshold on RESET_AVAILABLE
This commit is contained in:
parent
4ab8337324
commit
a67bbba736
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user