Nuke fixes (#6868)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Alex Evgrashin
2022-02-24 03:00:51 +03:00
committed by GitHub
parent b5165051f6
commit df970b2283
11 changed files with 97 additions and 91 deletions

View File

@@ -1,9 +1,6 @@
using Content.Server.Chat.Managers;
using Content.Server.Communications;
using Content.Shared.GameTicking;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Random;
namespace Content.Server.Nuke
@@ -17,7 +14,7 @@ namespace Content.Server.Nuke
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly IChatManager _chat = default!;
public const int CodeLength = 6;
private const int CodeLength = 6;
public string Code { get; private set; } = default!;
public override void Initialize()
@@ -47,7 +44,7 @@ namespace Content.Server.Nuke
public void GenerateNewCode()
{
var ret = "";
for (int i = 0; i < CodeLength; i++)
for (var i = 0; i < CodeLength; i++)
{
var c = (char) _random.Next('0', '9' + 1);
ret += c;