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, everyCondition,
delayedCondition, delayedCondition,
unsatisfiable, unsatisfiable,
notCondition,
inBitNode,
} from "./FactionJoinCondition"; } from "./FactionJoinCondition";
import { SpecialServers } from "../Server/data/SpecialServers"; import { SpecialServers } from "../Server/data/SpecialServers";
import { CONSTANTS } from "../Constants"; 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.</>, rumorText: <>The {CompanyName.NSA} would like to have a word with you once you're ready.</>,
inviteReqs: [haveSomeSourceFile(6, 7), haveBladeburnerRank(BladeburnerConstants.RankNeededForFaction)], inviteReqs: [haveSomeSourceFile(6, 7), haveBladeburnerRank(BladeburnerConstants.RankNeededForFaction)],
rumorReqs: [haveSomeSourceFile(6, 7)], rumorReqs: [haveSomeSourceFile(6, 7), notCondition(inBitNode(8))],
special: true, special: true,
assignment: (): React.ReactElement => { assignment: (): React.ReactElement => {
return ( return (

@ -27,6 +27,7 @@ import type {
NotRequirement, NotRequirement,
SomeRequirement, SomeRequirement,
EveryRequirement, EveryRequirement,
BitNodeRequirement,
} from "@nsdefs"; } from "@nsdefs";
import { calculateEffectiveRequiredReputation } from "../Company/utils"; 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 => ({ export const haveSourceFile = (n: number): PlayerCondition => ({
toString(): string { toString(): string {
return `In BitNode ${n} or have SourceFile ${n}`; return `In BitNode ${n} or have SourceFile ${n}`;