Skip to content

Commit

Permalink
优化声骸拾取
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 25, 2024
1 parent 4a4c0c5 commit 560c484
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/task/BaseCombatTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ def send_key_and_wait_f(self, direction, raise_if_not_found, time_out, running=F
else:
logger.warning(f"can't find the f to enter")
return False
if target_text:
return f_found

remaining = time.time() - start

if self.handle_claim_button():
Expand Down Expand Up @@ -257,8 +256,6 @@ def walk_until_f(self, direction='w', time_out=0, raise_if_not_found=True, backw
target_text=target_text) and self.sleep(0.5)
else:
self.send_key('f')
if target_text:
return True
if self.handle_claim_button():
return False
self.sleep(0.5)
Expand Down

0 comments on commit 560c484

Please sign in to comment.