mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-22 14:08:20 +08:00
Fix: Random background hits EXP_INFO_B in event_20220915_cn chapter A
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from module.base.utils import get_color, red_overlay_transparency
|
from module.base.utils import get_color, red_overlay_transparency
|
||||||
from module.campaign.campaign_base import CampaignBase as CampaignBase_
|
from module.campaign.campaign_base import CampaignBase as CampaignBase_
|
||||||
from module.handler.assets import MAP_ENEMY_SEARCHING
|
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_):
|
class CampaignBase(CampaignBase_):
|
||||||
@@ -12,3 +12,9 @@ class CampaignBase(CampaignBase_):
|
|||||||
return red_overlay_transparency(
|
return red_overlay_transparency(
|
||||||
MAP_ENEMY_SEARCHING.color, get_color(self.device.image, MAP_ENEMY_SEARCHING.area)
|
MAP_ENEMY_SEARCHING.color, get_color(self.device.image, MAP_ENEMY_SEARCHING.area)
|
||||||
) > self.MAP_ENEMY_SEARCHING_OVERLAY_TRANSPARENCY_THRESHOLD
|
) > 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 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.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_):
|
class CampaignBase(CampaignBase_):
|
||||||
@@ -12,3 +12,9 @@ class CampaignBase(CampaignBase_):
|
|||||||
return red_overlay_transparency(
|
return red_overlay_transparency(
|
||||||
MAP_ENEMY_SEARCHING.color, get_color(self.device.image, MAP_ENEMY_SEARCHING.area)
|
MAP_ENEMY_SEARCHING.color, get_color(self.device.image, MAP_ENEMY_SEARCHING.area)
|
||||||
) > self.MAP_ENEMY_SEARCHING_OVERLAY_TRANSPARENCY_THRESHOLD
|
) > 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()
|
||||||
|
|||||||
Reference in New Issue
Block a user