mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-22 18:46:57 +08:00
21 lines
753 B
Python
21 lines
753 B
Python
from module.base.utils import get_color, red_overlay_transparency
|
|
from module.campaign.campaign_base import CampaignBase as CampaignBase_
|
|
from module.handler.assets import MAP_ENEMY_SEARCHING
|
|
from module.ui.page import page_event
|
|
|
|
|
|
class CampaignBase(CampaignBase_):
|
|
def enemy_searching_appear(self):
|
|
if not self.is_in_map():
|
|
return False
|
|
|
|
return red_overlay_transparency(
|
|
MAP_ENEMY_SEARCHING.color, get_color(self.device.image, MAP_ENEMY_SEARCHING.area)
|
|
) > self.MAP_ENEMY_SEARCHING_OVERLAY_TRANSPARENCY_THRESHOLD
|
|
|
|
def handle_exp_info(self):
|
|
# Random background hits EXP_INFO_B
|
|
if self.ui_page_appear(page_event):
|
|
return False
|
|
return super().handle_exp_info()
|