Unhardcoded BN8 BB check; show if corp/BB are disabled in BN stats

This commit is contained in:
Kelenius
2022-09-12 17:46:16 +03:00
parent 2592c6ccd8
commit 5350e1c3e9
7 changed files with 25 additions and 9 deletions

View File

@@ -2,10 +2,6 @@ import { Bladeburner } from "../../Bladeburner/Bladeburner";
import { IPlayer } from "../IPlayer";
export function canAccessBladeburner(this: IPlayer): boolean {
if (this.bitNodeN === 8) {
return false;
}
return this.bitNodeN === 6 || this.bitNodeN === 7 || this.sourceFileLvl(6) > 0 || this.sourceFileLvl(7) > 0;
}