Lint more const string prototypes (#18922)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Content.Shared.Speech.Components;
|
||||
using Content.Shared.Speech.EntitySystems;
|
||||
@@ -9,6 +9,9 @@ namespace Content.Server.Speech.EntitySystems;
|
||||
public sealed class RatvarianLanguageSystem : SharedRatvarianLanguageSystem
|
||||
{
|
||||
[Dependency] private readonly StatusEffectsSystem _statusEffects = default!;
|
||||
|
||||
|
||||
[ValidatePrototypeId<StatusEffectPrototype>]
|
||||
private const string RatvarianKey = "RatvarianLanguage";
|
||||
|
||||
// This is the word of Ratvar and those who speak it shall abide by His rules:
|
||||
|
||||
@@ -12,6 +12,7 @@ public sealed class SlurredSystem : SharedSlurredSystem
|
||||
[Dependency] private readonly StatusEffectsSystem _statusEffectsSystem = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
[ValidatePrototypeId<StatusEffectPrototype>]
|
||||
private const string SlurKey = "SlurredSpeech";
|
||||
|
||||
public override void Initialize()
|
||||
|
||||
@@ -12,8 +12,6 @@ namespace Content.Server.Speech.EntitySystems
|
||||
[Dependency] private readonly StatusEffectsSystem _statusEffectsSystem = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
private const string StutterKey = "Stutter";
|
||||
|
||||
// Regex of characters to stutter.
|
||||
private static readonly Regex Stutter = new(@"[b-df-hj-np-tv-wxyz]",
|
||||
RegexOptions.Compiled | RegexOptions.IgnoreCase);
|
||||
|
||||
Reference in New Issue
Block a user