mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-06 17:05:54 +00:00
Update BaseWWTask.py
This commit is contained in:
parent
3eb423fb35
commit
802978e569
@ -187,13 +187,13 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def turn_and_find_echo(self):
|
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)
|
box = self.box_of_screen(0.25, 0.20, 0.75, 0.53, hcenter=True)
|
||||||
highest_percent = 0
|
highest_percent = 0
|
||||||
highest_index = 0
|
highest_index = 0
|
||||||
threshold = 0.02
|
threshold = 0.02
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
if self.walk_until_f(target_text=self.absorb_echo_text(), raise_if_not_found=False):
|
|
||||||
return True
|
|
||||||
self.middle_click_relative(0.5, 0.5, down_time=0.2)
|
self.middle_click_relative(0.5, 0.5, down_time=0.2)
|
||||||
self.sleep(1)
|
self.sleep(1)
|
||||||
color_percent = self.calculate_color_percentage(echo_color, box)
|
color_percent = self.calculate_color_percentage(echo_color, box)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user