1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00

Fix: Keep 1000 AP only when CL1 available but not enabled

This commit is contained in:
SarContDeli
2023-01-15 11:04:22 +08:00
parent d6c6298b8b
commit a5de8b3676
3 changed files with 6 additions and 4 deletions

View File

@@ -466,8 +466,9 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
"""
Keeping enough startup AP to run CL1.
"""
if self.is_cl1_enabled and get_os_reset_remain() > 2:
logger.info('Keep 1000 AP when CL1 enabled')
if self.is_cl1_enabled and get_os_reset_remain() > 2 \
and self.get_yellow_coins() > self.config.OS_CL1_YELLOW_COINS_PRESERVE:
logger.info('Keep 1000 AP when CL1 available')
if not self.action_point_check(1000):
self.config.opsi_task_delay(cl1_preserve=True)
self.config.task_stop()