NETSCRIPT: Rework script ram updates (#408)

This commit is contained in:
Snarling
2023-03-05 22:39:42 -05:00
committed by GitHub
parent 14aafbe0a3
commit 759f86d6e5
24 changed files with 171 additions and 177 deletions
+2 -2
View File
@@ -254,9 +254,9 @@ export function prestigeHomeComputer(homeComp: Server): void {
homeComp.programs.push(Programs.BitFlume.name);
}
//Update RAM usage on all scripts
//Reset RAM usage calculation for all scripts
homeComp.scripts.forEach(function (script) {
script.updateRamUsage(homeComp.scripts);
script.ramUsage = null;
});
homeComp.messages.length = 0; //Remove .lit and .msg files