mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-06 17:05:54 +00:00
optimize jue
This commit is contained in:
parent
f38fe7708f
commit
488d1c761c
@ -48,6 +48,7 @@ class BaseCombatTask(BaseTask, FindFeature, OCR, CombatCheck):
|
||||
self.sleep(wait_before)
|
||||
self.wait_until(lambda: self.in_combat(), time_out=3, raise_if_not_found=True)
|
||||
self.load_chars()
|
||||
self.info['Combat Count'] = self.info.get('Combat Count', 0) + 1
|
||||
while self.in_combat():
|
||||
try:
|
||||
logger.debug(f'combat_once loop {self.chars}')
|
||||
|
@ -53,7 +53,8 @@ class FarmEchoTask(BaseCombatTask):
|
||||
|
||||
while count < self.config.get("Repeat Farm Count", 0):
|
||||
count += 1
|
||||
self.wait_until(lambda: self.in_team()[0], time_out=40)
|
||||
self.wait_in_team_and_world(time_out=20)
|
||||
self.sleep(1)
|
||||
self.walk_until_f(time_out=10,
|
||||
direction='w' if self.config.get('Entrance Direction') == 'Forward' else 's')
|
||||
logger.info(f'enter success')
|
||||
|
Loading…
x
Reference in New Issue
Block a user