forked from Hay1tsme/artemis
- Add handle_get_game_ng_word_list_api_request function - Return an empty sensitive word list, including exact match and partial match lists - for maimai DX China version
29 lines
1002 B
Python
29 lines
1002 B
Python
from typing import Dict
|
|
|
|
from core.config import CoreConfig
|
|
from titles.mai2.festivalplus import Mai2FestivalPlus
|
|
from titles.mai2.const import Mai2Constants
|
|
from titles.mai2.config import Mai2Config
|
|
|
|
|
|
class Mai2Buddies(Mai2FestivalPlus):
|
|
def __init__(self, cfg: CoreConfig, game_cfg: Mai2Config) -> None:
|
|
super().__init__(cfg, game_cfg)
|
|
self.version = Mai2Constants.VER_MAIMAI_DX_BUDDIES
|
|
|
|
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)
|
|
|
|
# hardcode lastDataVersion for CardMaker
|
|
user_data["lastDataVersion"] = "1.40.00"
|
|
return user_data
|
|
|
|
async def handle_get_game_ng_word_list_api_request(self, data: Dict) -> Dict:
|
|
# for maimai DX China version
|
|
return {
|
|
"ngWordExactMatchLength":0,
|
|
"ngWordExactMatchList":[],
|
|
"ngWordPartialMatchLength":0,
|
|
"ngWordPartialMatchList":[]
|
|
}
|