Files
bitburner-src/src/PersonObjects/Player/PlayerObjectBladeburnerMethods.ts
catloversg e8f9882e2d MISC: Disable effect of SF7.3 and SF10 if player disables them with advanced options (#2019)
* MISC: Disable effect of SF7.3 and SF10 if player disables them with advanced options

* Update based on feedback
2025-03-17 16:04:36 -07:00

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,
});
}
}