From: Verm <32827189+Vermidia@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:26:26 +0000 (-0500) Subject: Artifact node IDs are now only 3 digits long (#26482) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2e9deaee1ed14bf03eff47e4e5b156f3ddc1bcb2;p=space-station-14.git Artifact node IDs are now only 3 digits long (#26482) * 2-digit nodes * 3-digits instead * Fix exclusive bounds --- diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Nodes.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Nodes.cs index 70ae7dcf0f..647f31a895 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Nodes.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Nodes.cs @@ -44,10 +44,10 @@ public sealed partial class ArtifactSystem private int GetValidNodeId() { - var id = _random.Next(10000, 100000); + var id = _random.Next(100, 1000); while (_usedNodeIds.Contains(id)) { - id = _random.Next(10000, 100000); + id = _random.Next(100, 1000); } _usedNodeIds.Add(id);