mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
* MISC: Disable effect of SF7.3 and SF10 if player disables them with advanced options * Update based on feedback
21 lines
739 B
TypeScript
21 lines
739 B
TypeScript
import { canAccessBitNodeFeature } from "../../BitNode/BitNodeUtils";
|
|
import { Bladeburner } from "../../Bladeburner/Bladeburner";
|
|
import { AugmentationName } from "@enums";
|
|
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();
|
|
// Give Blades Simulacrum if you have unlocked it
|
|
if (this.activeSourceFileLvl(7) >= 3) {
|
|
this.augmentations.push({
|
|
name: AugmentationName.BladesSimulacrum,
|
|
level: 1,
|
|
});
|
|
}
|
|
}
|