mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
This commit is contained in:
committed by
GitHub
parent
a674633f6c
commit
6073964768
@@ -33,6 +33,7 @@ import { Player } from "@player";
|
||||
import { UIEventEmitter, UIEventType } from "./ui/UIEventEmitter";
|
||||
import { getErrorMessageWithStackAndCause } from "./utils/ErrorHelper";
|
||||
import { exceptionAlert } from "./utils/helpers/exceptionAlert";
|
||||
import { DarknetServer } from "./Server/DarknetServer";
|
||||
|
||||
export const NetscriptPorts = new Map<PortNumber, Port>();
|
||||
|
||||
@@ -237,9 +238,9 @@ export function loadAllRunningScripts(): void {
|
||||
Terminal.warn("Skipped loading player scripts during startup");
|
||||
console.info("Skipping the load of any scripts during startup");
|
||||
}
|
||||
for (const server of GetAllServers()) {
|
||||
// Reset each server's RAM usage to 0
|
||||
server.ramUsed = 0;
|
||||
for (const server of GetAllServers(true)) {
|
||||
// Reset each server's RAM usage
|
||||
server.updateRamUsed(roundToTwo(server instanceof DarknetServer ? server.blockedRam : 0));
|
||||
|
||||
const rsList = server.savedScripts;
|
||||
server.savedScripts = undefined;
|
||||
|
||||
Reference in New Issue
Block a user