From 751d1c2622cc6692c033e7a785d34b9c7368f3c2 Mon Sep 17 00:00:00 2001 From: sui-feng-cb <2518179942@qq.com> Date: Sat, 6 Sep 2025 16:17:44 +0800 Subject: [PATCH] Fix: storage ship selected --- module/os_handler/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/os_handler/storage.py b/module/os_handler/storage.py index a8546395f..5a049c459 100644 --- a/module/os_handler/storage.py +++ b/module/os_handler/storage.py @@ -216,7 +216,7 @@ class StorageHandler(GlobeOperation, ZoneManager): self.device.screenshot() # End - if TEMPLATE_STORAGE_SHIP_SELECTED.match(self.image_crop(crop_area, copy=False)): + if TEMPLATE_STORAGE_SHIP_SELECTED.match(self.image_crop(crop_area, copy=False), similarity=0.78): logger.info('Storage Ship Selected') self.interval_clear(STORAGE_FLEET_CHOOSE) return True @@ -250,7 +250,7 @@ class StorageHandler(GlobeOperation, ZoneManager): # End if self.appear(STORAGE_REPAIR_CONFIRM, offset=(20, 20)) and \ - not TEMPLATE_STORAGE_SHIP_SELECTED.match(self.image_crop(crop_area, copy=False)): + not TEMPLATE_STORAGE_SHIP_SELECTED.match(self.image_crop(crop_area, copy=False), similarity=0.78): logger.info('Ship Fixed') break if self.handle_popup_cancel('STORAGE_REPAIR_FULL_CANCEL'):