1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 15:36:59 +08:00
Files
AzurLaneAutoScript/module/os_handler/map_event.py

23 lines
675 B
Python
Raw Normal View History

from module.combat.assets import *
from module.handler.info_handler import InfoHandler
from module.os_handler.assets import *
class MapEventHandler(InfoHandler):
def handle_map_get_items(self):
if self.appear(GET_ITEMS_1) or self.appear(GET_ITEMS_2) or self.appear(GET_ITEMS_3):
self.device.click(CLICK_SAFE_AREA)
return True
if self.appear(GET_OS_STATUS):
self.device.click(CLICK_SAFE_AREA)
return True
return False
def handle_map_archives(self):
if self.appear(MAP_ARCHIVES, interval=5):
self.device.click(CLICK_SAFE_AREA)
return True
return False