mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
8445af5f2b
Now initialized as side effect in PlayerObject, instead of in Player file that is imported everywhere.
12 lines
400 B
TypeScript
12 lines
400 B
TypeScript
import { Bladeburner } from "../../Bladeburner/Bladeburner";
|
|
|
|
import type { PlayerObject } from "./PlayerObject";
|
|
|
|
export function canAccessBladeburner(this: PlayerObject): boolean {
|
|
return this.bitNodeN === 6 || this.bitNodeN === 7 || this.sourceFileLvl(6) > 0 || this.sourceFileLvl(7) > 0;
|
|
}
|
|
|
|
export function startBladeburner(this: PlayerObject): void {
|
|
this.bladeburner = new Bladeburner();
|
|
}
|