File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from module .base .utils import get_color , red_overlay_transparency
22from module .campaign .campaign_base import CampaignBase as CampaignBase_
33from module .handler .assets import MAP_ENEMY_SEARCHING
4- from module .map . assets import SWITCH_OVER
4+ from module .ui . page import page_event
55
66
77class CampaignBase (CampaignBase_ ):
@@ -12,3 +12,9 @@ def enemy_searching_appear(self):
1212 return red_overlay_transparency (
1313 MAP_ENEMY_SEARCHING .color , get_color (self .device .image , MAP_ENEMY_SEARCHING .area )
1414 ) > self .MAP_ENEMY_SEARCHING_OVERLAY_TRANSPARENCY_THRESHOLD
15+
16+ def handle_exp_info (self ):
17+ # Random background hits EXP_INFO_B
18+ if self .ui_page_appear (page_event ):
19+ return False
20+ return super ().handle_exp_info ()
Original file line number Diff line number Diff line change 11from module .base .utils import get_color , red_overlay_transparency
2- from ..campaign_war_archives .campaign_base import CampaignBase as CampaignBase_
32from module .handler .assets import MAP_ENEMY_SEARCHING
4- from module .map .assets import SWITCH_OVER
3+ from module .ui .page import page_event
4+ from ..campaign_war_archives .campaign_base import CampaignBase as CampaignBase_
55
66
77class CampaignBase (CampaignBase_ ):
@@ -12,3 +12,9 @@ def enemy_searching_appear(self):
1212 return red_overlay_transparency (
1313 MAP_ENEMY_SEARCHING .color , get_color (self .device .image , MAP_ENEMY_SEARCHING .area )
1414 ) > self .MAP_ENEMY_SEARCHING_OVERLAY_TRANSPARENCY_THRESHOLD
15+
16+ def handle_exp_info (self ):
17+ # Random background hits EXP_INFO_B
18+ if self .ui_page_appear (page_event ):
19+ return False
20+ return super ().handle_exp_info ()
You can’t perform that action at this time.
0 commit comments