Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
IrisRainbowNeko committed Sep 21, 2021
1 parent 91f21fe commit 0f1d8e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fisher/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def move_func(dist):
rod_info = sorted(list(filter(lambda x: x[0] == 'rod', obj_list)), key=lambda x: x[1], reverse=True)
if len(rod_info)<=0:
win32api.mouse_event(win32con.MOUSEEVENTF_MOVE, np.random.randint(-50,50), np.random.randint(-50,50), 0, 0)
time.sleep(0.1)
continue
rod_info=rod_info[0]
rod_cx = (rod_info[2][0] + rod_info[2][2]) / 2
rod_cy = (rod_info[2][1] + rod_info[2][3]) / 2
Expand Down

0 comments on commit 0f1d8e1

Please sign in to comment.