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 #115 from NBOOK/master

转圈搜索使用A+视角重置替换WASD
This commit is contained in:
ok-oldking 2024-09-21 11:43:14 +08:00 committed by GitHub
commit bf7cdf7973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,8 +78,8 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
self.sleep(0.2) self.sleep(0.2)
def run_in_circle_to_find_echo(self, circle_count=3): def run_in_circle_to_find_echo(self, circle_count=3):
directions = ['w', 'a', 's', 'd'] directions = ['w', 'w', 'w', 'w']
step = 1.2 step = 0.8
duration = 0.8 duration = 0.8
total_index = 0 total_index = 0
for count in range(circle_count): for count in range(circle_count):
@ -92,6 +92,15 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
if picked: if picked:
self.mouse_up(key="right") self.mouse_up(key="right")
return True return True
self.sleep(0.1)
self.send_key_down('a')
self.sleep(0.01)
self.send_key_up('a')
self.sleep(0.1)
self.middle_click()
self.sleep(1)
total_index += 1 total_index += 1
def switch_next_char(self, current_char, post_action=None, free_intro=False, target_low_con=False): def switch_next_char(self, current_char, post_action=None, free_intro=False, target_low_con=False):