mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Opt: Limit situations to buy AP when running CL1
This commit is contained in:
@@ -376,10 +376,7 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
|
||||
logger.info('Just less than 1 day to OpSi reset, '
|
||||
'set ActionPointPreserve to 0 temporarily')
|
||||
return 0
|
||||
elif self.config.cross_get(
|
||||
keys='OpsiHazard1Leveling.Scheduler.Enable',
|
||||
default=False
|
||||
) and remain <= 2:
|
||||
elif self.is_cl1_enabled and remain <= 2:
|
||||
logger.info('Just less than 3 days to OpSi reset, '
|
||||
'set ActionPointPreserve to 500 temporarily for hazard 1 leveling')
|
||||
return 500
|
||||
@@ -403,6 +400,10 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
|
||||
def is_in_task_explore(self):
|
||||
return self.config.task.command == 'OpsiExplore'
|
||||
|
||||
@property
|
||||
def is_cl1_enabled(self):
|
||||
return self.config.cross_get('OpsiHazard1Leveling.Scheduler.Enable', default=False)
|
||||
|
||||
_auto_search_battle_count = 0
|
||||
_auto_search_round_timer = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user