mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 18:22:58 +02:00
Added comments for optimizing Script object
This commit is contained in:
@@ -132,7 +132,12 @@ function runScriptsLoop() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Reset the correspondings script's maps to save space
|
||||
//workerScripts[i].scriptRef.moneyStolenMap = {};
|
||||
//workerScripts[i].scriptRef.numTimesHackMap = {};
|
||||
//workerScripts[i].scriptRef.numTimesGrowMap = {};
|
||||
//workerScripts[i].scriptRef.numTimesWeakenMap = {};
|
||||
|
||||
//Free RAM
|
||||
AllServers[ip].ramUsed -= workerScripts[i].ramUsage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user