mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
MISC: Disable rumor of Bladeburners in BN8 (#1484)
This commit is contained in:
parent
8d39c7d9fc
commit
0e1e8a9862
@ -32,6 +32,8 @@ import {
|
||||
everyCondition,
|
||||
delayedCondition,
|
||||
unsatisfiable,
|
||||
notCondition,
|
||||
inBitNode,
|
||||
} from "./FactionJoinCondition";
|
||||
import { SpecialServers } from "../Server/data/SpecialServers";
|
||||
import { CONSTANTS } from "../Constants";
|
||||
@ -694,7 +696,7 @@ export const FactionInfos: Record<FactionName, FactionInfo> = {
|
||||
),
|
||||
rumorText: <>The {CompanyName.NSA} would like to have a word with you once you're ready.</>,
|
||||
inviteReqs: [haveSomeSourceFile(6, 7), haveBladeburnerRank(BladeburnerConstants.RankNeededForFaction)],
|
||||
rumorReqs: [haveSomeSourceFile(6, 7)],
|
||||
rumorReqs: [haveSomeSourceFile(6, 7), notCondition(inBitNode(8))],
|
||||
special: true,
|
||||
assignment: (): React.ReactElement => {
|
||||
return (
|
||||
|
@ -27,6 +27,7 @@ import type {
|
||||
NotRequirement,
|
||||
SomeRequirement,
|
||||
EveryRequirement,
|
||||
BitNodeRequirement,
|
||||
} from "@nsdefs";
|
||||
import { calculateEffectiveRequiredReputation } from "../Company/utils";
|
||||
|
||||
@ -275,6 +276,18 @@ export const haveBladeburnerRank = (n: number): PlayerCondition => ({
|
||||
},
|
||||
});
|
||||
|
||||
export const inBitNode = (n: number): PlayerCondition => ({
|
||||
toString(): string {
|
||||
return `In BitNode ${n}`;
|
||||
},
|
||||
toJSON(): BitNodeRequirement {
|
||||
return { type: "bitNodeN", bitNodeN: n };
|
||||
},
|
||||
isSatisfied(p: PlayerObject): boolean {
|
||||
return p.bitNodeN == n;
|
||||
},
|
||||
});
|
||||
|
||||
export const haveSourceFile = (n: number): PlayerCondition => ({
|
||||
toString(): string {
|
||||
return `In BitNode ${n} or have SourceFile ${n}`;
|
||||
|
Loading…
Reference in New Issue
Block a user