mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +01:00
MISC: Add a potential of more than 1 core for initial servers (#963)
This commit is contained in:
parent
3afafe4454
commit
101914b660
@ -154,6 +154,12 @@ export function initForeignServers(homeComputer: Server): void {
|
||||
if (metadata.serverGrowth) serverParams.serverGrowth = toNumber(metadata.serverGrowth);
|
||||
|
||||
const server = new Server(serverParams);
|
||||
|
||||
if (metadata.networkLayer) {
|
||||
const layer = toNumber(metadata.networkLayer);
|
||||
server.cpuCores = getRandomIntInclusive(Math.ceil(layer / 2), layer);
|
||||
}
|
||||
|
||||
for (const filename of metadata.literature || []) {
|
||||
server.messages.push(filename);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user