Никаких больше бесплатных фелинидов (#206)

Co-authored-by: Mona Hmiza <>
This commit is contained in:
RavMorgan
2023-07-17 23:27:02 +03:00
committed by Aviu00
parent 20b52d23a5
commit 1f1ff0763f
2 changed files with 6 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.GameTicking;
using Content.Shared.Players;
using Content.Shared.Humanoid.Prototypes;
using Content.Shared.Preferences;
using Content.Shared.Roles;
using Content.Shared.Roles.Jobs;
@@ -310,9 +311,8 @@ namespace Content.Server.GameTicking
if (existedAllowedProfile.Count == 0)
{
character = HumanoidCharacterProfile.RandomWithSpecies(_robustRandom.Pick(whitelistedSpecies));
_chatManager.DispatchServerMessage(player,
"Данному виду запрещено играть на этой профессии. Вам была выдана случайная внешность.");
character = HumanoidCharacterProfile.DefaultWithSpecies();
_chatManager.DispatchServerMessage(player, "Данному виду запрещено играть на этой профессии. Вам была выдана случайная внешность.");
}
else
{

View File

@@ -10,6 +10,7 @@ using Content.Server.Preferences.Managers;
using Content.Server.ServerUpdates;
using Content.Server.Shuttles.Systems;
using Content.Server.Station.Systems;
using Content.Server.White.Sponsors;
using Content.Shared.Chat;
using Content.Shared.Damage;
using Content.Shared.GameTicking;
@@ -71,6 +72,8 @@ namespace Content.Server.GameTicking
[Dependency] private readonly MetaDataSystem _metaData = default!;
[Dependency] private readonly SharedRoleSystem _roles = default!;
[Dependency] private readonly ServerDbEntryManager _dbEntryManager = default!;
[Dependency] private readonly SponsorsManager _sponsorsManager = default!;
[ViewVariables] private bool _initialized;
[ViewVariables] private bool _postInitialized;