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 = crop2content(name)
|
||||||
name = ocr_rec(name)
|
name = ocr_rec(name)
|
||||||
if name not in config.conf.activity_shop_blacklist:
|
if name not in config.conf.activity_shop_blacklist:
|
||||||
self.product = name
|
return name, va(top_left, (245, 110))
|
||||||
return va(top_left, (245, 110))
|
return None, None
|
||||||
return None
|
|
||||||
|
|
||||||
def transition(self):
|
def transition(self):
|
||||||
if (scene := self.scene()) == Scene.TERMINAL_MAIN:
|
if (scene := self.scene()) == Scene.TERMINAL_MAIN:
|
||||||
|
@ -79,8 +78,10 @@ class Shop(BaseSolver):
|
||||||
elif scene == Scene.ACTIVITY_SHOP:
|
elif scene == Scene.ACTIVITY_SHOP:
|
||||||
if self.animation():
|
if self.animation():
|
||||||
return
|
return
|
||||||
if pos := self.next_product():
|
name, pos = self.next_product()
|
||||||
self.tap(pos)
|
if pos is not None:
|
||||||
|
if self.ctap(pos):
|
||||||
|
self.product = name
|
||||||
return
|
return
|
||||||
self.swipe_ext([(1600, 340), (300, 340), (300, 150)], [0.2, 0.3], 0, 0.1)
|
self.swipe_ext([(1600, 340), (300, 340), (300, 150)], [0.2, 0.3], 0, 0.1)
|
||||||
elif scene == Scene.ACTIVITY_SHOP_BUY:
|
elif scene == Scene.ACTIVITY_SHOP_BUY:
|
||||||
|
|
Loading…
Add table
Reference in a new issue