Skip to content

Commit

Permalink
optimize jue
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 12, 2024
1 parent f38fe77 commit 488d1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/task/BaseCombatTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def combat_once(self, wait_combat_time=180, wait_before=2):
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}')
Expand Down
3 changes: 2 additions & 1 deletion src/task/FarmEchoTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def run(self):

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')
Expand Down

0 comments on commit 488d1c7

Please sign in to comment.