mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 03:25:44 +02:00
Servers are sorted on Active Scripts page (#1102)
This commit is contained in:
@@ -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"] });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user