Lint more const string prototypes (#18922)
This commit is contained in:
@@ -12,6 +12,7 @@ namespace Content.Server.Electrocution
|
||||
public string Description => Loc.GetString("electrocute-command-description");
|
||||
public string Help => $"{Command} <uid> <seconds> <damage>";
|
||||
|
||||
[ValidatePrototypeId<StatusEffectPrototype>]
|
||||
public const string ElectrocutionStatusEffect = "Electrocution";
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
|
||||
@@ -52,7 +52,10 @@ public sealed class ElectrocutionSystem : SharedElectrocutionSystem
|
||||
[Dependency] private readonly SharedStutteringSystem _stuttering = default!;
|
||||
[Dependency] private readonly TagSystem _tag = default!;
|
||||
|
||||
[ValidatePrototypeId<StatusEffectPrototype>]
|
||||
private const string StatusEffectKey = "Electrocution";
|
||||
|
||||
[ValidatePrototypeId<DamageTypePrototype>]
|
||||
private const string DamageType = "Shock";
|
||||
|
||||
// Yes, this is absurdly small for a reason.
|
||||
|
||||
Reference in New Issue
Block a user