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
This commit is contained in:
Martin Fournier 2022-01-16 11:31:52 -05:00
parent 8b69fd7faa
commit a03e47593f

@ -319,10 +319,10 @@ export function SidebarRoot(props: IProps): React.ReactElement {
} else if (event.keyCode === KEY.U && event.altKey) { } else if (event.keyCode === KEY.U && event.altKey) {
event.preventDefault(); event.preventDefault();
clickTutorial(); clickTutorial();
} else if (event.keyCode === KEY.B && event.altKey) { } else if (event.keyCode === KEY.B && event.altKey && props.player.bladeburner) {
event.preventDefault(); event.preventDefault();
clickBladeburner(); clickBladeburner();
} else if (event.keyCode === KEY.G && event.altKey) { } else if (event.keyCode === KEY.G && event.altKey && props.player.gang) {
event.preventDefault(); event.preventDefault();
clickGang(); clickGang();
} }