mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 23:51:30 +08:00
Opt: use handle_fleet_repair for OpsiStronghold SubmarineEveryCombat
This commit is contained in:
@@ -753,9 +753,12 @@ class OperationSiren(OSMap):
|
|||||||
self.globe_enter(zone)
|
self.globe_enter(zone)
|
||||||
self.zone_init()
|
self.zone_init()
|
||||||
self.os_order_execute(recon_scan=True, submarine_call=False)
|
self.os_order_execute(recon_scan=True, submarine_call=False)
|
||||||
self.run_stronghold()
|
self.run_stronghold(submarine=self.config.OpsiStronghold_SubmarineEveryCombat)
|
||||||
|
|
||||||
self.fleet_repair(revert=False)
|
if self.config.OpsiStronghold_SubmarineEveryCombat:
|
||||||
|
self.handle_fleet_repair(revert=False)
|
||||||
|
else:
|
||||||
|
self.fleet_repair(revert=False)
|
||||||
self.handle_fleet_resolve(revert=False)
|
self.handle_fleet_resolve(revert=False)
|
||||||
|
|
||||||
def os_stronghold(self):
|
def os_stronghold(self):
|
||||||
@@ -813,9 +816,11 @@ class OperationSiren(OSMap):
|
|||||||
self.globe_goto(prev, types='STRONGHOLD')
|
self.globe_goto(prev, types='STRONGHOLD')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
def run_stronghold(self):
|
def run_stronghold(self, submarine=False):
|
||||||
"""
|
"""
|
||||||
All fleets take turns in attacking siren stronghold.
|
All fleets take turns in attacking siren stronghold.
|
||||||
|
Args:
|
||||||
|
submarine (bool): If use submarine every combat
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
bool: If success to clear.
|
bool: If success to clear.
|
||||||
@@ -833,7 +838,7 @@ class OperationSiren(OSMap):
|
|||||||
self.os_order_execute(recon_scan=False, submarine_call=True)
|
self.os_order_execute(recon_scan=False, submarine_call=True)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
result = self.run_stronghold_one_fleet(fleet, submarine=self.config.OpsiStronghold_SubmarineEveryCombat)
|
result = self.run_stronghold_one_fleet(fleet, submarine=submarine)
|
||||||
if result:
|
if result:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user