Fix SSS role being repeated in the examine tooltip (#1714)

This commit is contained in:
DrSmugleaf
2020-08-16 18:41:16 +02:00
committed by GitHub
parent fa49eb5895
commit 772eb2c966
3 changed files with 48 additions and 23 deletions

View File

@@ -10,11 +10,12 @@ using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using System.Collections.Generic;
using System.Linq;
using Content.Server.GameObjects.Components.Suspicion;
using Content.Shared.Roles;
using Robust.Shared.GameObjects;
using Robust.Shared.Log;
using Robust.Shared.Maths;
namespace Content.Server.GameTicking.GamePresets
{
public class PresetSuspicion : GamePreset
@@ -54,6 +55,8 @@ namespace Content.Server.GameTicking.GamePresets
{
prefList.Add(player);
}
player.AttachedEntity?.EnsureComponent<SuspicionRoleComponent>();
}
var numTraitors = FloatMath.Clamp(readyPlayers.Count % PlayersPerTraitor,