From 32ba81883fb5158ee0598855b596309e3dd8d27c Mon Sep 17 00:00:00 2001 From: SagePtr Date: Thu, 20 Jan 2022 23:59:54 +0200 Subject: [PATCH] Force achievements recalculation on bitnode completion --- src/ui/GameRoot.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/GameRoot.tsx b/src/ui/GameRoot.tsx index 2e7a265cc..5823f39a5 100644 --- a/src/ui/GameRoot.tsx +++ b/src/ui/GameRoot.tsx @@ -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"; @@ -286,6 +287,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) => {