mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
[feat] Network server layers can be randomized
This commit is contained in:
parent
319b45ead5
commit
625734d326
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user