From 47b2ba82b7c046a8a800b6180c8dfa4eacb35254 Mon Sep 17 00:00:00 2001 From: Hoshino Starry Date: Thu, 9 Jan 2025 16:27:09 +0800 Subject: [PATCH] feat(mai2): Add API request function to handle game NG word list - 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 --- titles/mai2/buddies.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/titles/mai2/buddies.py b/titles/mai2/buddies.py index 38049a1..060cefd 100644 --- a/titles/mai2/buddies.py +++ b/titles/mai2/buddies.py @@ -17,3 +17,12 @@ class Mai2Buddies(Mai2FestivalPlus): # 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":[] + }