1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-08-15 11:43:08 +08:00

Fix: use cl1_enough_yellow_coins to check yellow coins

This commit is contained in:
2026-08-14 17:07:00 +08:00
parent a75804d045
commit 3da5e86cea

View File

@@ -68,8 +68,8 @@ class OSCampaignRun(OSMapOperation):
except ActionPointLimit:
self.config.opsi_task_delay(ap_limit=True)
if self.config.is_task_enabled('OpsiHazard1Leveling') \
and self.get_yellow_coins() > self.config.OS_CL1_YELLOW_COINS_PRESERVE:
self.config.task_call('OpsiHazard1Leveling')
and self.cl1_enough_yellow_coins:
self.config.task_call('OpsiHazard1Leveling')
def opsi_month_boss(self):
if self.config.SERVER in ['tw']:
@@ -91,7 +91,7 @@ class OSCampaignRun(OSMapOperation):
except ActionPointLimit:
self.config.opsi_task_delay(ap_limit=True)
if self.config.is_task_enabled('OpsiHazard1Leveling') \
and self.get_yellow_coins() > self.config.OS_CL1_YELLOW_COINS_PRESERVE:
and self.cl1_enough_yellow_coins:
self.config.task_call('OpsiHazard1Leveling')
def opsi_archive(self):
@@ -108,7 +108,7 @@ class OSCampaignRun(OSMapOperation):
except ActionPointLimit:
self.config.opsi_task_delay(ap_limit=True)
if self.config.is_task_enabled('OpsiHazard1Leveling') \
and self.get_yellow_coins() > self.config.OS_CL1_YELLOW_COINS_PRESERVE:
and self.cl1_enough_yellow_coins:
self.config.task_call('OpsiHazard1Leveling')
def opsi_cross_month(self):