From fb20a47133eb51e491be293dee691a1b1e743271 Mon Sep 17 00:00:00 2001 From: RavMorgan <48182970+RavMorgan@users.noreply.github.com> Date: Sat, 22 Jul 2023 17:51:04 +0300 Subject: [PATCH] "Replace default character assignment with random" (#216) This edit modifies the GameTicker.Spawning script. Initially, if the player-selected profile was not allowed, a default character profile was assigned. This has been updated to assign a random character profile instead, providing players with a more varied gaming experience even when restrictions apply. Co-authored-by: Mona Hmiza <> --- Content.Server/GameTicking/GameTicker.Spawning.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameTicking/GameTicker.Spawning.cs b/Content.Server/GameTicking/GameTicker.Spawning.cs index d5754bc4b5..fe04db37d9 100644 --- a/Content.Server/GameTicking/GameTicker.Spawning.cs +++ b/Content.Server/GameTicking/GameTicker.Spawning.cs @@ -311,7 +311,7 @@ namespace Content.Server.GameTicking if (existedAllowedProfile.Count == 0) { - character = HumanoidCharacterProfile.DefaultWithSpecies(); + character = HumanoidCharacterProfile.RandomWithSpecies(); _chatManager.DispatchServerMessage(player, "Данному виду запрещено играть на этой профессии. Вам была выдана случайная внешность."); } else