mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 19:55:12 +00:00
Compare commits
1 Commits
61fa6ad28b
...
79ea59d60c
| Author | SHA1 | Date | |
|---|---|---|---|
| 79ea59d60c |
@ -133,13 +133,14 @@ class Cafe(UI):
|
||||
if self.appear_then_click(CHECK_REWARD):
|
||||
return CafeStatus.REWARD
|
||||
case CafeStatus.REWARD:
|
||||
if not self.appear(GET_REWARD):
|
||||
self.click_with_interval(CHECK_REWARD, interval=6)
|
||||
return status
|
||||
if self.match_color(GOT_REWARD):
|
||||
self.device.click(GET_REWARD_CLOSE)
|
||||
return CafeStatus.GOT
|
||||
if not self.appear(GET_REWARD):
|
||||
return CafeStatus.OCR
|
||||
if self.match_color(GET_REWARD):
|
||||
self.device.click(GET_REWARD)
|
||||
self.click_with_interval(GET_REWARD)
|
||||
case CafeStatus.GOT:
|
||||
logger.info('Cafe reward have been got')
|
||||
self.appear_then_click(GET_REWARD_CLOSE)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user