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

22
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -132,11 +132,6 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
* Using map access to do the same
  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 :(`,
);
}

@ -22,6 +22,12 @@ export class Output {
export class RawOutput {
raw: React.ReactNode;
constructor(node: React.ReactNode) {
if (Settings.EnableTimestamps)
node = (
<>
[{getTimestamp()}] {node}
</>
);
this.raw = node;
}
}

@ -143,10 +143,6 @@ export function ls(
{ segments: allScripts, style: { color: "yellow", fontStyle: "bold" } },
].filter((g) => g.segments.length > 0);
for (let i = 0; i < groups.length; i++) {
if (i !== 0) {
terminal.print("");
terminal.print("");
}
postSegments(groups[i].segments, groups[i].style);
}
}