mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Add: Repair ships in port and accept all missions in all ports
- Fix: Port exit - Fix: Handle unable to accept more missions - Opt: Adjust map init, map init should be called at first, and when zone changed
This commit is contained in:
@@ -1,14 +1,22 @@
|
||||
from module.os.config import OSConfig
|
||||
from module.os.map import OSMap
|
||||
from module.os.map_operation import OSMapOperation
|
||||
from module.os.operation_siren import OperationSiren
|
||||
|
||||
|
||||
class OSCampaignRun(OSMapOperation):
|
||||
campaign: OSMap
|
||||
campaign: OperationSiren
|
||||
|
||||
campaign_loaded = False
|
||||
|
||||
def load_campaign(self):
|
||||
if self.campaign_loaded:
|
||||
return False
|
||||
|
||||
config = self.config.merge(OSConfig())
|
||||
self.campaign = OSMap(config=config, device=self.device)
|
||||
self.campaign = OperationSiren(config=config, device=self.device)
|
||||
|
||||
self.campaign_loaded = True
|
||||
return True
|
||||
|
||||
def run(self):
|
||||
self.load_campaign()
|
||||
|
||||
Reference in New Issue
Block a user