MISC: Disable rumor of Bladeburners in BN8 (#1484)

This commit is contained in:
catloversg 2024-07-15 04:20:10 +07:00 committed by GitHub
parent 8d39c7d9fc
commit 0e1e8a9862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

@ -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}`;