2023-04-10 16:58:19 +00:00
|
|
|
from typing import Dict
|
2023-02-17 06:02:21 +00:00
|
|
|
|
|
|
|
from core.config import CoreConfig
|
2023-07-15 20:51:54 +00:00
|
|
|
from titles.mai2.universe import Mai2Universe
|
2023-02-17 06:02:21 +00:00
|
|
|
from titles.mai2.const import Mai2Constants
|
|
|
|
from titles.mai2.config import Mai2Config
|
|
|
|
|
2023-03-09 16:38:58 +00:00
|
|
|
|
2023-07-15 20:51:54 +00:00
|
|
|
class Mai2UniversePlus(Mai2Universe):
|
2023-02-17 06:02:21 +00:00
|
|
|
def __init__(self, cfg: CoreConfig, game_cfg: Mai2Config) -> None:
|
|
|
|
super().__init__(cfg, game_cfg)
|
2023-03-09 16:38:58 +00:00
|
|
|
self.version = Mai2Constants.VER_MAIMAI_DX_UNIVERSE_PLUS
|
2023-03-15 20:03:22 +00:00
|
|
|
|
2024-01-09 08:07:04 +00:00
|
|
|
async def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict:
|
|
|
|
user_data = await super().handle_cm_get_user_preview_api_request(data)
|
2023-03-15 20:03:22 +00:00
|
|
|
|
|
|
|
# hardcode lastDataVersion for CardMaker 1.35
|
|
|
|
user_data["lastDataVersion"] = "1.25.00"
|
|
|
|
return user_data
|