mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-21 21:58:05 +00:00
🎨 Update recognize_starrail_server
function
Added support for additional servers co-authored-by: xtaodada <xtao@xtaolink.cn>
This commit is contained in:
parent
4250481727
commit
8446a16a51
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user