Skip to content

Commit

Permalink
Fix: missing cl1 task call when globe_goto a zone
Browse files Browse the repository at this point in the history
  • Loading branch information
guoh064 committed May 4, 2024
1 parent 6f61a7f commit 5fb7f91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion module/os/operation_siren.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,12 @@ def os_meowfficer_farming(self):
.sort_by_clock_degree(center=(1252, 1012), start=self.zone.location)

logger.hr(f'OS meowfficer farming, zone_id={zones[0].zone_id}', level=1)
self.globe_goto(zones[0])
try:
self.globe_goto(zones[0])
except ActionPointLimit:
if self.is_cl1_enabled and self.get_yellow_coins() >= self.config.OS_CL1_YELLOW_COINS_PRESERVE:
self.config.task_call('OpsiHazard1Leveling')
raise ActionPointLimit
self.fleet_set(self.config.OpsiFleet_Fleet)
self.os_order_execute(
recon_scan=False,
Expand Down

0 comments on commit 5fb7f91

Please sign in to comment.