mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 10:12:53 +02:00
14 lines
498 B
TypeScript
14 lines
498 B
TypeScript
import { canAccessBitNodeFeature } from "../../BitNode/BitNodeUtils";
|
|
import { Bladeburner } from "../../Bladeburner/Bladeburner";
|
|
|
|
import type { PlayerObject } from "./PlayerObject";
|
|
|
|
export function canAccessBladeburner(this: PlayerObject): boolean {
|
|
return (canAccessBitNodeFeature(6) || canAccessBitNodeFeature(7)) && !this.bitNodeOptions.disableBladeburner;
|
|
}
|
|
|
|
export function startBladeburner(this: PlayerObject): void {
|
|
this.bladeburner = new Bladeburner();
|
|
this.bladeburner.init();
|
|
}
|