Force achievements recalculation on bitnode completion

This commit is contained in:
SagePtr 2022-01-20 23:59:54 +02:00
parent f7d18efaf6
commit 32ba81883f

@ -72,6 +72,7 @@ import { LogBoxManager } from "./React/LogBoxManager";
import { AlertManager } from "./React/AlertManager"; import { AlertManager } from "./React/AlertManager";
import { PromptManager } from "./React/PromptManager"; import { PromptManager } from "./React/PromptManager";
import { InvitationModal } from "../Faction/ui/InvitationModal"; import { InvitationModal } from "../Faction/ui/InvitationModal";
import { calculateAchievements } from "../Achievements/Achievements";
import { enterBitNode } from "../RedPill"; import { enterBitNode } from "../RedPill";
import { Context } from "./Context"; import { Context } from "./Context";
@ -286,6 +287,7 @@ export function GameRoot({ player, engine, terminal }: IProps): React.ReactEleme
toBitVerse: (flume: boolean, quick: boolean) => { toBitVerse: (flume: boolean, quick: boolean) => {
setFlume(flume); setFlume(flume);
setQuick(quick); setQuick(quick);
calculateAchievements();
setPage(Page.BitVerse); setPage(Page.BitVerse);
}, },
toInfiltration: (location: Location) => { toInfiltration: (location: Location) => {