fix ram miscalc

This commit is contained in:
Olivier Gagnon
2021-10-27 19:10:15 -04:00
parent 82d1560f52
commit f92db3b8f8
6 changed files with 20 additions and 23 deletions
+11 -11
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
-5
View File
@@ -132,11 +132,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
* Using map access to do the same * Using map access to do the same
  const myScan = ns['scan'];   const myScan = ns['scan'];
* Saving script in the improper order.
  Increase the cost of an imported script, save it, then run the
  parent. To fix this just re-open & save every script in order
  from most imported to least imported (parent script).
Sorry :(`, Sorry :(`,
); );
} }
@@ -22,6 +22,12 @@ export class Output {
export class RawOutput { export class RawOutput {
raw: React.ReactNode; raw: React.ReactNode;
constructor(node: React.ReactNode) { constructor(node: React.ReactNode) {
if (Settings.EnableTimestamps)
node = (
<>
[{getTimestamp()}] {node}
</>
);
this.raw = node; this.raw = node;
} }
} }
-4
View File
@@ -143,10 +143,6 @@ export function ls(
{ segments: allScripts, style: { color: "yellow", fontStyle: "bold" } }, { segments: allScripts, style: { color: "yellow", fontStyle: "bold" } },
].filter((g) => g.segments.length > 0); ].filter((g) => g.segments.length > 0);
for (let i = 0; i < groups.length; i++) { for (let i = 0; i < groups.length; i++) {
if (i !== 0) {
terminal.print("");
terminal.print("");
}
postSegments(groups[i].segments, groups[i].style); postSegments(groups[i].segments, groups[i].style);
} }
} }