use triple equal

This commit is contained in:
Olivier Gagnon 2022-09-22 23:45:00 -04:00
parent 9f922de50d
commit 4f64d3eeb1
3 changed files with 3 additions and 3 deletions

@ -280,7 +280,7 @@ function BladeburnerMults({ mults }: IMultsProps): React.ReactElement {
const player = use.Player();
if (!player.canAccessBladeburner()) return <></>;
if (mults.BladeburnerRank == 0) {
if (mults.BladeburnerRank === 0) {
const rows: IBNMultRows = {
BladeburnerRank: { name: "Disabled", content: "" },
};

@ -83,7 +83,7 @@ export function SpecialLocation(props: IProps): React.ReactElement {
}
function renderBladeburner(): React.ReactElement {
if (!player.canAccessBladeburner() || BitNodeMultipliers.BladeburnerRank == 0) {
if (!player.canAccessBladeburner() || BitNodeMultipliers.BladeburnerRank === 0) {
return <></>;
}
const text = inBladeburner ? "Enter Bladeburner Headquarters" : "Apply to Bladeburner Division";

@ -397,7 +397,7 @@ export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
},
joinBladeburnerDivision: (ctx: NetscriptContext) => (): boolean => {
if (player.bitNodeN === 7 || player.sourceFileLvl(7) > 0) {
if (BitNodeMultipliers.BladeburnerRank == 0) {
if (BitNodeMultipliers.BladeburnerRank === 0) {
return false; // Disabled in this bitnode
}
if (player.bladeburner instanceof Bladeburner) {