idac: fix collabo and special mode

This commit is contained in:
Dniel97
2026-04-06 22:21:19 +02:00
parent bd7625069f
commit 36b33fa1e6
2 changed files with 9 additions and 2 deletions
@@ -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(
@@ -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: