This commit is contained in:
parent
a61f8c202f
commit
fee5eaccd5
1 changed files with 4 additions and 6 deletions
|
@ -36,7 +36,6 @@ class Shop(SceneGraphSolver):
|
||||||
solver_max_duration = timedelta(minutes=5)
|
solver_max_duration = timedelta(minutes=5)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.notify_shop = False
|
|
||||||
self.product = None
|
self.product = None
|
||||||
return super().run()
|
return super().run()
|
||||||
|
|
||||||
|
@ -96,17 +95,16 @@ class Shop(SceneGraphSolver):
|
||||||
return True
|
return True
|
||||||
self.tap(pos, update=False)
|
self.tap(pos, update=False)
|
||||||
self.sleep(0.5, update=False)
|
self.sleep(0.5, update=False)
|
||||||
self.notify_shop = True
|
|
||||||
self.ctap("sign_in/shop/buy", id=self.product)
|
self.ctap("sign_in/shop/buy", id=self.product)
|
||||||
elif scene == Scene.MATERIEL:
|
elif scene == Scene.MATERIEL:
|
||||||
if self.notify_shop:
|
if self.product:
|
||||||
self.notify_shop = False
|
|
||||||
self.sleep()
|
self.sleep()
|
||||||
notify(f"活动商店物品购买:{self.product}")
|
notify(f"活动商店物品购买:{self.product}")
|
||||||
|
self.product = None
|
||||||
self.tap((960, 200))
|
self.tap((960, 200))
|
||||||
elif scene == Scene.ROGUE_AGENT:
|
elif scene == Scene.ROGUE_AGENT:
|
||||||
if self.notify_shop:
|
if self.product:
|
||||||
self.notify_shop = False
|
self.product = None
|
||||||
notify("活动商店时装购买")
|
notify("活动商店时装购买")
|
||||||
self.tap((960, 200))
|
self.tap((960, 200))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue