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