mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 11:10:58 +02:00
Re-designed Active Scripts tab. Re-designed growth mechanic to depend on server security. Server growth no longer occurss manually. Bug fixes
This commit is contained in:
@@ -133,12 +133,12 @@ function runScriptsLoop() {
|
||||
|
||||
//Free RAM
|
||||
AllServers[ip].ramUsed -= workerScripts[i].ramUsage;
|
||||
|
||||
//Delete script from Active Scripts
|
||||
deleteActiveScriptsItem(workerScripts[i]);
|
||||
|
||||
//Delete script from workerScripts
|
||||
workerScripts.splice(i, 1);
|
||||
|
||||
//Delete script from Active Scripts
|
||||
Engine.deleteActiveScriptsItem(i);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ function addWorkerScript(script, server) {
|
||||
s.ramUsage = script.ramUsage;
|
||||
|
||||
//Add the WorkerScript to the Active Scripts list
|
||||
Engine.addActiveScriptsItem(s);
|
||||
addActiveScriptsItem(s);
|
||||
|
||||
//Add the WorkerScript
|
||||
workerScripts.push(s);
|
||||
|
||||
Reference in New Issue
Block a user