mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 09:13:07 +02:00
Moved Player initialization point (#452)
Now initialized as side effect in PlayerObject, instead of in Player file that is imported everywhere.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
// Server and HacknetServer-related methods for the Player class (PlayerObject)
|
||||
import { PlayerObject } from "./PlayerObject";
|
||||
|
||||
import { CONSTANTS } from "../../Constants";
|
||||
|
||||
import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers";
|
||||
@@ -11,6 +9,8 @@ import { GetServer, AddToAllServers, createUniqueRandomIp } from "../../Server/A
|
||||
import { SpecialServers } from "../../Server/data/SpecialServers";
|
||||
import { hasHacknetServers } from "../../Hacknet/HacknetHelpers";
|
||||
|
||||
import type { PlayerObject } from "./PlayerObject";
|
||||
|
||||
export function hasTorRouter(this: PlayerObject): boolean {
|
||||
return this.getHomeComputer().serversOnNetwork.includes(SpecialServers.DarkWeb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user