From a03e47593ff831a27498676d45c576c93496b3da Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Sun, 16 Jan 2022 11:31:52 -0500 Subject: [PATCH] Shortcuts now check to see if feature is unlocked The sidebar now checks if the Player has unlocked the features before using the router to head to the new page. - Check added for Bladeburner - Check added for Gangs --- src/Sidebar/ui/SidebarRoot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sidebar/ui/SidebarRoot.tsx b/src/Sidebar/ui/SidebarRoot.tsx index 0e51a2175..b7a8263ab 100644 --- a/src/Sidebar/ui/SidebarRoot.tsx +++ b/src/Sidebar/ui/SidebarRoot.tsx @@ -319,10 +319,10 @@ export function SidebarRoot(props: IProps): React.ReactElement { } else if (event.keyCode === KEY.U && event.altKey) { event.preventDefault(); clickTutorial(); - } else if (event.keyCode === KEY.B && event.altKey) { + } else if (event.keyCode === KEY.B && event.altKey && props.player.bladeburner) { event.preventDefault(); clickBladeburner(); - } else if (event.keyCode === KEY.G && event.altKey) { + } else if (event.keyCode === KEY.G && event.altKey && props.player.gang) { event.preventDefault(); clickGang(); }