From e873e25b537831f892b8af8ded4a66b1c76f5933 Mon Sep 17 00:00:00 2001 From: ZKWolf Date: Tue, 20 Feb 2024 23:32:15 +0100 Subject: [PATCH] Added new game modes --- src/endpoints/matchmaking.py | 16 ++++++++++++++++ src/logic/queue_handler.py | 5 +++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/endpoints/matchmaking.py b/src/endpoints/matchmaking.py index 53aaaa2..d1a16e5 100644 --- a/src/endpoints/matchmaking.py +++ b/src/endpoints/matchmaking.py @@ -211,6 +211,8 @@ def match_register(match_id_unsanitized): game_mode = "REMIX" elif game_mode == "a0fdf9ce92261dcc5492f353b62f34f3-Default": game_mode = "4 Needles" + else: + game_mode = "Default" match_configuration = response["props"]["MatchConfiguration"] if match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_Demo_HarvestYourExit_1v5.MatchConfig_Demo_HarvestYourExit_1v5": @@ -225,6 +227,20 @@ def match_register(match_id_unsanitized): match_configuration = "Harvest Your Exit 4Needles" elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_DES_City_2Hunters.MatchConfig_DES_City_2Hunters": match_configuration = "Desert City 5 needles" + elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_WA_Rivers.MatchConfig_WA_Rivers": + match_configuration = "Creek" + elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_WA_Cemetery.MatchConfig_WA_Cemetery": + match_configuration = "Tombstone" + elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_DES_Oilfield.MatchConfig_DES_Oilfield": + match_configuration = "Blowout" + elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_ARC_BlastFurnace.MatchConfig_ARC_BlastFurnace": + match_configuration = "Fire in the Sky" + elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_DES_Mayan.MatchConfig_DES_Mayan": + match_configuration = "Dust & Blood" + elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_ARC_Expedition.MatchConfig_ARC_Expedition": + match_configuration = "Arctic Expedition" + elif match_configuration == "/Game/Configuration/MatchConfig/MatchConfig_RUI_All.MatchConfig_RUI_All": + match_configuration = "First Strike" if dev_env == "true": match_id = f"DEV-{match_id}" diff --git a/src/logic/queue_handler.py b/src/logic/queue_handler.py index 6a58626..4e1f302 100644 --- a/src/logic/queue_handler.py +++ b/src/logic/queue_handler.py @@ -88,8 +88,9 @@ def random_game_mode(): MatchConfig_WA_Rivers_2Hunters = {'gameMode': 'feac811fdef1d1a2f2fc26b3c99205fd-Default', 'MatchConfiguration': '/Game/Configuration/MatchConfig/MatchConfig_WA_Rivers_2Hunters.MatchConfig_WA_Rivers_2Hunters'} - list_of_game_modes = [MatchConfig_Demo, MatchConfig_Demo_HarvestYourExit_1v5, MatchConfig_ARC_Fortress, - MatchConfig_Demo_2v8_4Needles] + list_of_game_modes = [MatchConfig_WA_Rivers, MatchConfig_WA_Cemetery, + MatchConfig_DES_Oilfield, MatchConfig_ARC_BlastFurnace, MatchConfig_DES_Mayan, + MatchConfig_ARC_Expedition, MatchConfig_RUI_All, MatchConfig_ARC_Fortress] return random.choice(list_of_game_modes)