Skip to content

Commit

Permalink
fix(plugin): auto crane not work
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Jul 19, 2021
1 parent d4296d2 commit 8a73cb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/auto_crane.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@


def play(ctx: single_mode.Context):
for duration in (2.5, 1.8, 1.2):
for duration in (2.2, 1.8, 1.2):
_, pos = action.wait_image(templates.SINGLE_MODE_CRANE_GAME_BUTTON)
time.sleep(3)
_, pos = action.wait_image(templates.SINGLE_MODE_CRANE_GAME_BUTTON)
action.swipe(pos, duration=duration)
time.sleep(5)
action.wait_tap_image(templates.GREEN_OK_BUTTON)


Expand Down

0 comments on commit 8a73cb0

Please sign in to comment.