Fix SSS role being repeated in the examine tooltip (#1714)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user