mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 05:53:44 +08:00
Upd: ensure shop scrolled to top before buying
This commit is contained in:
@@ -205,6 +205,7 @@ class MedalShop2(ShopClerk):
|
|||||||
self.wait_until_medal_appear()
|
self.wait_until_medal_appear()
|
||||||
|
|
||||||
# Execute buy operations
|
# Execute buy operations
|
||||||
|
MEDAL_SHOP_SCROLL.set_top(main=self)
|
||||||
while 1:
|
while 1:
|
||||||
self.shop_buy()
|
self.shop_buy()
|
||||||
if MEDAL_SHOP_SCROLL.at_bottom(main=self):
|
if MEDAL_SHOP_SCROLL.at_bottom(main=self):
|
||||||
|
|||||||
@@ -185,6 +185,7 @@ class VoucherShop(ShopClerk):
|
|||||||
self.wait_until_voucher_appear()
|
self.wait_until_voucher_appear()
|
||||||
|
|
||||||
# Execute buy operations
|
# Execute buy operations
|
||||||
|
VOUCHER_SHOP_SCROLL.set_top(main=self)
|
||||||
while 1:
|
while 1:
|
||||||
self.shop_buy()
|
self.shop_buy()
|
||||||
if VOUCHER_SHOP_SCROLL.at_bottom(main=self):
|
if VOUCHER_SHOP_SCROLL.at_bottom(main=self):
|
||||||
|
|||||||
Reference in New Issue
Block a user