Servers are sorted on Active Scripts page (#1102)

This commit is contained in:
Snarling
2024-02-16 21:06:18 -05:00
committed by GitHub
parent 8c8af38a3a
commit 9b483bdd8a
4 changed files with 58 additions and 38 deletions
+2 -1
View File
@@ -122,6 +122,7 @@ export abstract class BaseServer implements IServer {
openPortCount?: number;
requiredHackingSkill?: number;
serverGrowth?: number;
isHacknetServer?: boolean;
constructor(params: IConstructorParams = { hostname: "", ip: createRandomIp() }) {
this.ip = params.ip ? params.ip : createRandomIp();
@@ -367,6 +368,6 @@ export abstract class BaseServer implements IServer {
// Customize a prune list for a subclass.
static getIncludedKeys<T extends BaseServer>(ctor: new () => T): readonly (keyof T)[] {
return getKeyList(ctor, { removedKeys: ["runningScriptMap", "savedScripts", "ramUsed"] });
return getKeyList(ctor, { removedKeys: ["runningScriptMap", "savedScripts", "ramUsed", "isHacknetServer"] });
}
}