From 53306555c89f627967bdaf4da4272c01dc490064 Mon Sep 17 00:00:00 2001 From: guoh064 <50830808+guoh064@users.noreply.github.com> Date: Tue, 20 Jan 2026 16:41:24 +0800 Subject: [PATCH] Opt: call all ap consuming tasks when cl1 cannot continue --- module/os/tasks/hazard_leveling.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/os/tasks/hazard_leveling.py b/module/os/tasks/hazard_leveling.py index 03501dc802..2ab1489dd2 100644 --- a/module/os/tasks/hazard_leveling.py +++ b/module/os/tasks/hazard_leveling.py @@ -27,6 +27,11 @@ def os_hazard1_leveling(self): with self.config.multi_set(): self.config.task_delay(server_update=True) if not self.is_in_opsi_explore(): + cd = self.nearest_task_cooling_down + if cd is None: + for task in ['OpsiAbyssal', 'OpsiStronghold', 'OpsiObscure']: + if self.config.is_task_enabled(task): + self.config.task_call(task) self.config.task_call('OpsiMeowfficerFarming') self.config.task_stop() @@ -42,6 +47,11 @@ def os_hazard1_leveling(self): with self.config.multi_set(): self.config.task_delay(server_update=True) if not self.is_in_opsi_explore(): + cd = self.nearest_task_cooling_down + if cd is None: + for task in ['OpsiAbyssal', 'OpsiStronghold', 'OpsiObscure']: + if self.config.is_task_enabled(task): + self.config.task_call(task) self.config.task_call('OpsiMeowfficerFarming') self.config.task_stop()