MISC: Add a potential of more than 1 core for initial servers (#963)

This commit is contained in:
TheAimMan 2024-06-04 09:50:28 -04:00 committed by GitHub
parent 3afafe4454
commit 101914b660
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}