"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 <>
This commit is contained in:
RavMorgan
2023-07-22 17:51:04 +03:00
committed by Aviu00
parent 4d5c60d792
commit fb20a47133

View File

@@ -311,7 +311,7 @@ namespace Content.Server.GameTicking
if (existedAllowedProfile.Count == 0)
{
character = HumanoidCharacterProfile.DefaultWithSpecies();
character = HumanoidCharacterProfile.RandomWithSpecies();
_chatManager.DispatchServerMessage(player, "Данному виду запрещено играть на этой профессии. Вам была выдана случайная внешность.");
}
else