This commit is contained in:
parent
e6d2398bb9
commit
b42b052e29
1 changed files with 6 additions and 5 deletions
|
@ -67,9 +67,8 @@ class Shop(BaseSolver):
|
|||
name = crop2content(name)
|
||||
name = ocr_rec(name)
|
||||
if name not in config.conf.activity_shop_blacklist:
|
||||
self.product = name
|
||||
return va(top_left, (245, 110))
|
||||
return None
|
||||
return name, va(top_left, (245, 110))
|
||||
return None, None
|
||||
|
||||
def transition(self):
|
||||
if (scene := self.scene()) == Scene.TERMINAL_MAIN:
|
||||
|
@ -79,8 +78,10 @@ class Shop(BaseSolver):
|
|||
elif scene == Scene.ACTIVITY_SHOP:
|
||||
if self.animation():
|
||||
return
|
||||
if pos := self.next_product():
|
||||
self.tap(pos)
|
||||
name, pos = self.next_product()
|
||||
if pos is not None:
|
||||
if self.ctap(pos):
|
||||
self.product = name
|
||||
return
|
||||
self.swipe_ext([(1600, 340), (300, 340), (300, 150)], [0.2, 0.3], 0, 0.1)
|
||||
elif scene == Scene.ACTIVITY_SHOP_BUY:
|
||||
|
|
Loading…
Add table
Reference in a new issue