1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-31 22:50:35 +08:00

Del: Deprecate port_mission_accept()

This commit is contained in:
LmeSzinc
2022-01-13 17:48:24 +08:00
parent 803e7a5813
commit 61153482b3
2 changed files with 6 additions and 3 deletions

View File

@@ -221,8 +221,9 @@ class OperationSiren(Reward, OSMap):
self.globe_goto(port) self.globe_goto(port)
self.port_goto() self.port_goto()
self.port_enter() self.port_enter()
if mission and mission_success: # Deprecated since 2022.01.13, missions are shown only in overview, no longer to be shown at ports.
mission_success &= self.port_mission_accept() # if mission and mission_success:
# mission_success &= self.port_mission_accept()
if supply and supply_success: if supply and supply_success:
supply_success &= self.port_supply_buy() supply_success &= self.port_supply_buy()
self.port_quit() self.port_quit()

View File

@@ -37,6 +37,8 @@ class PortHandler(OSShopHandler):
""" """
Accept all missions in port. Accept all missions in port.
Deprecated since 2022.01.13, missions are shown only in overview, no longer to be shown at ports.
Returns: Returns:
bool: True if all missions accepted or no mission found. bool: True if all missions accepted or no mission found.
False if unable to accept more missions. False if unable to accept more missions.
@@ -52,7 +54,7 @@ class PortHandler(OSShopHandler):
self.ui_click(PORT_GOTO_MISSION, appear_button=PORT_CHECK, check_button=PORT_MISSION_CHECK, self.ui_click(PORT_GOTO_MISSION, appear_button=PORT_CHECK, check_button=PORT_MISSION_CHECK,
skip_first_screenshot=True) skip_first_screenshot=True)
confirm_timer = Timer(1.5, count=3) confirm_timer = Timer(1.5, count=3).start()
skip_first_screenshot = True skip_first_screenshot = True
success = True success = True
while 1: while 1: