@@ -160,14 +160,16 @@ def dispatch_bounties(settings: DispatchBountiesSettings) -> None:
160160 touch_img_when_visible ("buttons/dispatch" )
161161 touch_img_when_visible ("buttons/confirm" )
162162
163- # TODO::imgs-untested
164- if settings ["event_bounties" ]:
165- if touch_img_wait ("labels/event_bounty" ):
166- touch_img_wait ("buttons/collect_all" , seconds = 2 )
167- while touch_img_wait ("buttons/dispatch_bounties" ):
168- touch_xy_wait (530 , 1030 , seconds = 2 )
169- touch_xy_wait (120 , 1500 )
170- touch_img_wait ("buttons/dispatch" , confidence = 0.8 , grayscale = True )
163+ if settings ["event_bounties" ] and touch_img_when_visible (
164+ "labels/event_bounty" , timeout_s = 0.1
165+ ):
166+ touch_img_when_visible ("buttons/collect_all" , timeout_s = 1 )
167+ while touch_img_when_visible_after_wait (
168+ "buttons/dispatch_bounties" , timeout_s = 1 , seconds = 0.1
169+ ):
170+ touch_xy_after_wait (530 , 1030 , seconds = 0.25 )
171+ touch_xy_after_wait (120 , 1500 , seconds = 0.25 )
172+ touch_img_when_visible ("buttons/dispatch" )
171173
172174 logger .info ("Bounties dispatched" )
173175
0 commit comments