diff --git a/titles/idac/controller/season2/boot_controller.py b/titles/idac/controller/season2/boot_controller.py index ef0d20e..130b217 100644 --- a/titles/idac/controller/season2/boot_controller.py +++ b/titles/idac/controller/season2/boot_controller.py @@ -65,6 +65,7 @@ class IDACSeason2BootController: self.last_round_event_ranking: list[ ResponseSeason2BootGetConfigData.LastRoundEventRanking ] = [] + self.collabo_id = CollaboEnum.NONE if self.game_cfg.collabo.enable: self.collabo_id = CollaboEnum(self.game_cfg.collabo.collabo_id) @@ -94,7 +95,6 @@ class IDACSeason2BootController: return { 150: StoryTypeEnum.TOUHOU_1ST, 170: StoryTypeEnum.MIKU, - 210: StoryTypeEnum.HOT_VERSION, }.get(ver, 0) async def handle_get_config_data_request( diff --git a/titles/idac/controller/season3/boot_controller.py b/titles/idac/controller/season3/boot_controller.py index 058c2d7..9c19f3c 100644 --- a/titles/idac/controller/season3/boot_controller.py +++ b/titles/idac/controller/season3/boot_controller.py @@ -4,7 +4,7 @@ from typing import Dict from core.config import CoreConfig from titles.idac.config import IDACServerConfig -from titles.idac.const import CollaboEnum, IDACConstants +from titles.idac.const import IDACConstants, StoryTypeEnum from titles.idac.controller.season2.boot_controller import IDACSeason2BootController from titles.idac.gameconfig.season3_config import IDACSeason3Config from titles.idac.model.season3.boot_model import ResponseSeason3BootGetConfigData @@ -25,6 +25,13 @@ class IDACSeason3BootController(IDACSeason2BootController): self.version = IDACConstants.VER_IDAC_SEASON_3 + def _special_story_type(self, headers: Dict) -> StoryTypeEnum: + ver = self._headers_to_version(headers) + + return { + 210: StoryTypeEnum.HOT_VERSION, + }.get(ver, 0) + async def handle_get_config_data_request( self, data: Dict, headers: Dict ) -> ResponseSeason3BootGetConfigData: