MISC: Rework faction rumor (#2569)

This commit is contained in:
catloversg
2026-03-17 01:49:46 +07:00
committed by GitHub
parent ade79c0f65
commit f916daf252
6 changed files with 33 additions and 24 deletions

View File

@@ -58,14 +58,11 @@ export function prestigeAugmentation(): void {
initBitNodeMultipliers();
// Maintain invites to factions with the 'keepOnInstall' flag, and rumors about others
// Maintain invites to factions with the 'keepOnInstall' flag
const maintainInvites = new Set<FactionName>();
const maintainRumors = new Set<FactionName>();
for (const facName of [...Player.factions, ...Player.factionInvitations]) {
if (Factions[facName].getInfo().keep) {
maintainInvites.add(facName);
} else {
maintainRumors.add(facName);
}
}
@@ -193,9 +190,6 @@ export function prestigeAugmentation(): void {
}
}
// Hear rumors after all invites/bans
for (const factionName of maintainRumors) Player.receiveRumor(factionName);
resetPidCounter();
ProgramsSeen.clear();
InvitationsSeen.clear();