Merge pull request #2726 from SagePtr/recheck-achievements

Force achievements recalculation on bitnode completion
This commit is contained in:
hydroflame 2022-01-26 00:50:06 -05:00 committed by GitHub
commit 3654a238ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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