Dniel97
2af7751504
Co-authored-by: Dniel97 <Dniel97@noreply.gitea.tendokyu.moe> Reviewed-on: Hay1tsme/artemis#14 Co-authored-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe> Co-committed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
23 lines
761 B
Python
23 lines
761 B
Python
from typing import Any, List, Dict
|
|
from datetime import datetime, timedelta
|
|
import pytz
|
|
import json
|
|
|
|
from core.config import CoreConfig
|
|
from titles.mai2.universe import Mai2Universe
|
|
from titles.mai2.const import Mai2Constants
|
|
from titles.mai2.config import Mai2Config
|
|
|
|
|
|
class Mai2UniversePlus(Mai2Universe):
|
|
def __init__(self, cfg: CoreConfig, game_cfg: Mai2Config) -> None:
|
|
super().__init__(cfg, game_cfg)
|
|
self.version = Mai2Constants.VER_MAIMAI_DX_UNIVERSE_PLUS
|
|
|
|
def handle_cm_get_user_preview_api_request(self, data: Dict) -> Dict:
|
|
user_data = super().handle_cm_get_user_preview_api_request(data)
|
|
|
|
# hardcode lastDataVersion for CardMaker 1.35
|
|
user_data["lastDataVersion"] = "1.25.00"
|
|
return user_data
|