Replace ValidatePrototypeId uses with ProtoId or EntProtoId (#38814)
* The easy ones * For certain values of easy * Easy test * Hair * Fix sandbox violations * Sort usings
This commit is contained in:
@@ -6,6 +6,7 @@ using Content.Shared.Access;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.DeviceNetwork;
|
||||
using Content.Shared.DeviceNetwork.Components;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Shuttles.BUIStates;
|
||||
using Content.Shared.Shuttles.Events;
|
||||
@@ -13,7 +14,7 @@ using Content.Shared.Shuttles.Systems;
|
||||
using Content.Shared.UserInterface;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Player;
|
||||
using Content.Shared.DeviceNetwork.Components;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Timer = Robust.Shared.Timing.Timer;
|
||||
|
||||
namespace Content.Server.Shuttles.Systems;
|
||||
@@ -65,8 +66,7 @@ public sealed partial class EmergencyShuttleSystem
|
||||
|
||||
private CancellationTokenSource? _roundEndCancelToken;
|
||||
|
||||
[ValidatePrototypeId<AccessLevelPrototype>]
|
||||
private const string EmergencyRepealAllAccess = "EmergencyShuttleRepealAll";
|
||||
private static readonly ProtoId<AccessLevelPrototype> EmergencyRepealAllAccess = "EmergencyShuttleRepealAll";
|
||||
private static readonly Color DangerColor = Color.Red;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user