0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-05 08:25:28 +00:00

Merge pull request #76 from Small-Ku/feat/fast-4-turn

提前結束 4 方向搜索
This commit is contained in:
ok-oldking 2024-08-18 10:03:18 +08:00 committed by GitHub
commit eb949793a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,6 +187,8 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
return True
def turn_and_find_echo(self):
if self.walk_until_f(target_text=self.absorb_echo_text(), raise_if_not_found=False):
return True
box = self.box_of_screen(0.25, 0.20, 0.75, 0.53, hcenter=True)
highest_percent = 0
highest_index = 0