mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Refactor: Use numpy image cache instead of pillow image
This commit is contained in:
@@ -278,7 +278,7 @@ class MapOperation(MysteryHandler, FleetPreparation, Retirement, FastForwardHand
|
||||
"""
|
||||
if not self.map_cat_attack_timer.reached():
|
||||
return False
|
||||
if np.sum(color_similarity_2d(self.image_area(MAP_CAT_ATTACK), (255, 231, 123)) > 221) > 100:
|
||||
if np.sum(color_similarity_2d(self.image_crop(MAP_CAT_ATTACK), (255, 231, 123)) > 221) > 100:
|
||||
logger.info('Skip map cat attack')
|
||||
self.device.click(MAP_CAT_ATTACK)
|
||||
self.map_cat_attack_timer.reset()
|
||||
|
||||
Reference in New Issue
Block a user