mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
fix: handle sidebar disappear (#3930)
* fix: handle OpsiShop disappear * docs: add a condition to OpsiShop * ref: remove useless loop * fix: exception * feat: skip to the next month if the new shop do not unlock
This commit is contained in:
@@ -79,17 +79,11 @@ class PortHandler(OSShop):
|
||||
self.ui_back(appear_button=PORT_MISSION_CHECK, check_button=PORT_CHECK, skip_first_screenshot=True)
|
||||
return success
|
||||
|
||||
def port_supply_buy(self):
|
||||
def port_shop_enter(self):
|
||||
"""
|
||||
Buy supply in port.
|
||||
|
||||
Returns:
|
||||
bool: True if success to buy any or no items found.
|
||||
False if not enough coins to buy any.
|
||||
|
||||
Pages:
|
||||
in: PORT_CHECK
|
||||
out: PORT_CHECK
|
||||
out: PORT_SUPPLY_CHECK
|
||||
"""
|
||||
self.ui_click(PORT_GOTO_SUPPLY, appear_button=PORT_CHECK, check_button=PORT_SUPPLY_CHECK,
|
||||
skip_first_screenshot=True)
|
||||
@@ -97,10 +91,13 @@ class PortHandler(OSShop):
|
||||
self.device.sleep(0.5)
|
||||
self.device.screenshot()
|
||||
|
||||
success = self.handle_port_supply_buy()
|
||||
|
||||
def port_shop_quit(self):
|
||||
"""
|
||||
Pages:
|
||||
in: PORT_SUPPLY_CHECK
|
||||
out: PORT_CHECK
|
||||
"""
|
||||
self.ui_back(appear_button=PORT_SUPPLY_CHECK, check_button=PORT_CHECK, skip_first_screenshot=True)
|
||||
return success
|
||||
|
||||
def port_dock_repair(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user