Goes in-game now

This commit is contained in:
Vera Aguilera Puerto
2021-12-06 15:34:46 +01:00
parent af4eb3c7cd
commit c57b07a4d0
43 changed files with 129 additions and 130 deletions

View File

@@ -66,13 +66,13 @@ namespace Content.Server.GameTicking.Presets
foreach (var player in list)
{
if (!ReadyProfiles.ContainsKey(player.UserId))
if (!ReadyProfiles.ContainsKey(player.UserId) || player.AttachedEntity is not {} attached)
{
continue;
}
prefList.Add(player);
player.AttachedEntity.EnsureComponent<SuspicionRoleComponent>();
attached.EnsureComponent<SuspicionRoleComponent>();
}
var numTraitors = MathHelper.Clamp(readyPlayers.Count / PlayersPerTraitor,