mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-11 15:57:33 +01:00
#3711: Generate contracts only on network
This commit is contained in:
parent
cb4fd4cf90
commit
37e32ee0f8
@ -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];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user