]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Artifact node IDs are now only 3 digits long (#26482)
authorVerm <32827189+Vermidia@users.noreply.github.com>
Wed, 27 Mar 2024 23:26:26 +0000 (18:26 -0500)
committerGitHub <noreply@github.com>
Wed, 27 Mar 2024 23:26:26 +0000 (19:26 -0400)
* 2-digit nodes

* 3-digits instead

* Fix exclusive bounds

Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.Nodes.cs

index 70ae7dcf0f370f45aa28fc6d856606caa81cd4b7..647f31a89538250af7646e41856c058f4b4c2517 100644 (file)
@@ -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);