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

Update BaseWWTask.py

This commit is contained in:
ok-oldking 2024-08-18 10:02:45 +08:00 committed by GitHub
parent 802978e569
commit a22c2c8ef6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,8 +192,8 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
box = self.box_of_screen(0.25, 0.20, 0.75, 0.53, hcenter=True)
highest_percent = 0
highest_index = 0
threshold = 0.02
for i in range(4):
threshold = 0.02
for i in range(4):
self.middle_click_relative(0.5, 0.5, down_time=0.2)
self.sleep(1)
color_percent = self.calculate_color_percentage(echo_color, box)