From 8446a16a51c447a1c1ac92555f8aff598a08b977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Mon, 8 May 2023 09:01:19 +0800 Subject: [PATCH] :art: Update `recognize_starrail_server` function Added support for additional servers co-authored-by: xtaodada --- simnet/utils/player.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/simnet/utils/player.py b/simnet/utils/player.py index 013875b..f94a305 100644 --- a/simnet/utils/player.py +++ b/simnet/utils/player.py @@ -1,6 +1,7 @@ """This module contains functions for recognizing servers associated with different player IDs.""" from typing import Optional, Mapping, Sequence + from simnet.utils.enum_ import Game, Region UID_RANGE: Mapping[Game, Mapping[Region, Sequence[int]]] = { @@ -62,11 +63,11 @@ def recognize_starrail_server(player_id: int) -> str: server = { "1": "prod_gf_cn", "2": "prod_gf_cn", - "5": "", - "6": "", - "7": "", - "8": "", - "9": "", + "5": "prod_qd_cn", + "6": "prod_official_usa", + "7": "prod_official_eur", + "8": "prod_official_asia", + "9": "prod_official_cht", }.get(str(player_id)[0]) if server: