mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 06:18:01 +08:00
Fix: storage ship selected
This commit is contained in:
@@ -216,7 +216,7 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
# End
|
# 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')
|
logger.info('Storage Ship Selected')
|
||||||
self.interval_clear(STORAGE_FLEET_CHOOSE)
|
self.interval_clear(STORAGE_FLEET_CHOOSE)
|
||||||
return True
|
return True
|
||||||
@@ -250,7 +250,7 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
|
|
||||||
# End
|
# End
|
||||||
if self.appear(STORAGE_REPAIR_CONFIRM, offset=(20, 20)) and \
|
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')
|
logger.info('Ship Fixed')
|
||||||
break
|
break
|
||||||
if self.handle_popup_cancel('STORAGE_REPAIR_FULL_CANCEL'):
|
if self.handle_popup_cancel('STORAGE_REPAIR_FULL_CANCEL'):
|
||||||
|
|||||||
Reference in New Issue
Block a user