mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-11 04:42:34 +01:00
#3711: Generate contracts only on network
This commit is contained in:
@ -155,7 +155,7 @@ function getRandomReward(): ICodingContractReward {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getRandomServer(): BaseServer {
|
function getRandomServer(): BaseServer {
|
||||||
const servers = GetAllServers();
|
const servers = GetAllServers().filter((server: BaseServer) => server.serversOnNetwork.length !== 0);
|
||||||
let randIndex = getRandomInt(0, servers.length - 1);
|
let randIndex = getRandomInt(0, servers.length - 1);
|
||||||
let randServer = servers[randIndex];
|
let randServer = servers[randIndex];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user