From 625734d326828bcce0ab3605e5b81abfeb263554 Mon Sep 17 00:00:00 2001 From: Steven Evans Date: Fri, 7 Sep 2018 00:05:34 -0400 Subject: [PATCH] [feat] Network server layers can be randomized --- src/Server.js | 2 +- src/data/servers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Server.js b/src/Server.js index 6143ef730..d73b82ed2 100644 --- a/src/Server.js +++ b/src/Server.js @@ -177,7 +177,7 @@ function initForeignServers() { AddToAllServers(server); if (metadata.networkLayer !== undefined) { - networkLayers[metadata.networkLayer - 1].push(server); + networkLayers[toNumber(metadata.networkLayer) - 1].push(server); } } diff --git a/src/data/servers.ts b/src/data/servers.ts index 9dcf1789e..ac0b88c75 100644 --- a/src/data/servers.ts +++ b/src/data/servers.ts @@ -54,7 +54,7 @@ interface IServerMetadata { * This value is between 1 and 15. * If this is not populated, @specialName should be. */ - networkLayer?: number; + networkLayer?: number | IMinMaxRange; /** * The number of ports that must be opened before the player can execute NUKE.