mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 05:28:01 +08:00
Fix: Random background hits EXP_INFO_B in event_20220915_cn chapter A
This commit is contained in:
parent
d88b7f397a
commit
5cc986257f
@ -1,7 +1,7 @@
|
||||
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.map.assets import SWITCH_OVER
|
||||
from module.ui.page import page_event
|
||||
|
||||
|
||||
class CampaignBase(CampaignBase_):
|
||||
@ -12,3 +12,9 @@ class CampaignBase(CampaignBase_):
|
||||
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()
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
from module.base.utils import get_color, red_overlay_transparency
|
||||
from ..campaign_war_archives.campaign_base import CampaignBase as CampaignBase_
|
||||
from module.handler.assets import MAP_ENEMY_SEARCHING
|
||||
from module.map.assets import SWITCH_OVER
|
||||
from module.ui.page import page_event
|
||||
from ..campaign_war_archives.campaign_base import CampaignBase as CampaignBase_
|
||||
|
||||
|
||||
class CampaignBase(CampaignBase_):
|
||||
@ -12,3 +12,9 @@ class CampaignBase(CampaignBase_):
|
||||
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user