mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-20 22:35:35 +08:00
Add: Accept port missions in overview
- Split OpsiDaily into OpsiDaily and OpsiShop - Add config redirection
This commit is contained in:
@@ -224,7 +224,7 @@ class OperationSiren(Reward, OSMap):
|
||||
# Deprecated since 2022.01.13, missions are shown only in overview, no longer to be shown at ports.
|
||||
# if mission and mission_success:
|
||||
# mission_success &= self.port_mission_accept()
|
||||
if supply and supply_success:
|
||||
if supply:
|
||||
supply_success &= self.port_supply_buy()
|
||||
self.port_quit()
|
||||
|
||||
@@ -258,23 +258,22 @@ class OperationSiren(Reward, OSMap):
|
||||
return True
|
||||
|
||||
def os_daily(self):
|
||||
# Finish existing missions first
|
||||
self.os_finish_daily_mission()
|
||||
|
||||
while 1:
|
||||
mission_success = True
|
||||
if self.config.OpsiDaily_DoMission or self.config.OpsiDaily_BuySupply:
|
||||
self.os_finish_daily_mission()
|
||||
self.config.check_task_switch()
|
||||
# If unable to receive more dailies, finish them and try again.
|
||||
mission_success, _ = self.os_port_daily(
|
||||
mission=self.config.OpsiDaily_DoMission, supply=self.config.OpsiDaily_BuySupply)
|
||||
|
||||
if self.config.OpsiDaily_DoMission:
|
||||
self.os_finish_daily_mission()
|
||||
|
||||
if mission_success:
|
||||
# If unable to receive more dailies, finish them and try again.
|
||||
success = self.os_mission_overview_accept()
|
||||
self.os_finish_daily_mission()
|
||||
if success:
|
||||
break
|
||||
|
||||
self.config.task_delay(server_update=True)
|
||||
|
||||
def os_shop(self):
|
||||
self.os_port_daily(mission=False, supply=self.config.OpsiShop_BuySupply)
|
||||
self.config.task_delay(server_update=True)
|
||||
|
||||
def os_meowfficer_farming(self):
|
||||
"""
|
||||
Recommend 3 or 5 for higher meowfficer searching point per action points ratio.
|
||||
|
||||
Reference in New Issue
Block a user