Fix: Random background of chapter A hits EXP_INFO_B

This commit is contained in:
LmeSzinc 2024-06-21 01:06:51 +08:00
parent bac6d6deeb
commit 3d53d4f360
4 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
from module.campaign.campaign_base import CampaignBase
from .campaign_base import CampaignBase
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger

View File

@ -1,4 +1,4 @@
from module.campaign.campaign_base import CampaignBase
from .campaign_base import CampaignBase
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger

View File

@ -1,4 +1,4 @@
from module.campaign.campaign_base import CampaignBase
from .campaign_base import CampaignBase
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger

View File

@ -0,0 +1,10 @@
from module.campaign.campaign_base import CampaignBase as CampaignBase_
from module.ui.page import page_event
class CampaignBase(CampaignBase_):
def handle_exp_info(self):
# Random background of chapter A hits EXP_INFO_B
if self.ui_page_appear(page_event):
return False
return super().handle_exp_info()