Skip to content

Commit

Permalink
fix grayscale bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 18, 2024
1 parent 6ffac69 commit ddc9747
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/task/BaseCombatTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ def send_key_and_wait_f(self, direction, raise_if_not_found, time_out, running=F
if running:
self.mouse_down(key='right')
self.send_key_down(direction)
f_found = self.wait_feature('pick_up_f', horizontal_variance=0.05, vertical_variance=0.05,
use_gray_scale=True, threshold=0.8,
f_found = self.wait_feature('pick_up_f', horizontal_variance=0.01, vertical_variance=0.01, threshold=0.8,
wait_until_before_delay=0, time_out=time_out, raise_if_not_found=False)
if f_found:
self.send_key('f')
Expand Down

0 comments on commit ddc9747

Please sign in to comment.