From 3da5e86cea2afdbded7ad982ca3943500b29708a Mon Sep 17 00:00:00 2001 From: sui-feng-cb <2518179942@qq.com> Date: Fri, 14 Aug 2026 17:07:00 +0800 Subject: [PATCH] Fix: use cl1_enough_yellow_coins to check yellow coins --- module/campaign/os_run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/campaign/os_run.py b/module/campaign/os_run.py index 18b0b7faa..cf099ddfc 100644 --- a/module/campaign/os_run.py +++ b/module/campaign/os_run.py @@ -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):