1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-17 04:18:53 +08:00

Opt: use yellow_coins_preserve aggressively

This commit is contained in:
guoh064
2026-06-12 15:51:29 +08:00
parent f64a702270
commit 10dd242c82
6 changed files with 13 additions and 13 deletions

View File

@@ -434,7 +434,7 @@ class OSMap(OSFleet, Map, GlobeCamera, StrategicSearchHandler):
Keeping enough startup AP to run CL1.
"""
if self.is_cl1_enabled and get_os_reset_remain() > 2 \
and self.get_yellow_coins() > self.config.OS_CL1_YELLOW_COINS_PRESERVE:
and self.get_yellow_coins() > self.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)

View File

@@ -22,8 +22,8 @@ class OpsiHazard1Leveling(OSMap):
self.config.OS_ACTION_POINT_PRESERVE = 0
logger.attr('OS_ACTION_POINT_PRESERVE', self.config.OS_ACTION_POINT_PRESERVE)
if self.get_yellow_coins() < self.config.OS_CL1_YELLOW_COINS_PRESERVE:
logger.info(f'Reach the limit of yellow coins, preserve={self.config.OS_CL1_YELLOW_COINS_PRESERVE}')
if self.get_yellow_coins() < self.yellow_coins_preserve:
logger.info(f'Reach the limit of yellow coins, preserve={self.yellow_coins_preserve}')
with self.config.multi_set():
self.config.task_delay(server_update=True)
if not self.is_in_opsi_explore():

View File

@@ -52,7 +52,7 @@ class OpsiMeowfficerFarming(OSMap):
# When not running CL1 and use oil
keep_current_ap = True
check_rest_ap = True
if self.is_cl1_enabled and self.get_yellow_coins() >= self.config.OS_CL1_YELLOW_COINS_PRESERVE:
if self.is_cl1_enabled and self.get_yellow_coins() >= self.yellow_coins_preserve:
check_rest_ap = False
if not self.is_cl1_enabled and self.config.OpsiGeneral_BuyActionPointLimit > 0:
keep_current_ap = False