mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
BITNODE: IPvGO territory control strategy game (#934)
This commit is contained in:
committed by
GitHub
parent
c6141f2adf
commit
7ef12a0323
@@ -39,6 +39,7 @@ import EmojiEventsIcon from "@mui/icons-material/EmojiEvents"; // Achievements
|
||||
import AccountBoxIcon from "@mui/icons-material/AccountBox";
|
||||
import PublicIcon from "@mui/icons-material/Public";
|
||||
import LiveHelpIcon from "@mui/icons-material/LiveHelp";
|
||||
import BorderInnerSharp from "@mui/icons-material/BorderInnerSharp";
|
||||
|
||||
import { Router } from "../../ui/GameRoot";
|
||||
import { Page, isSimplePage } from "../../ui/Router";
|
||||
@@ -55,6 +56,7 @@ import { InvitationsSeen } from "../../Faction/ui/FactionsRoot";
|
||||
import { hash } from "../../hash/hash";
|
||||
import { Locations } from "../../Locations/Locations";
|
||||
import { useRerender } from "../../ui/React/hooks";
|
||||
import { playerHasDiscoveredGo } from "../../Go/effects/effect";
|
||||
|
||||
const RotatedDoubleArrowIcon = React.forwardRef(function RotatedDoubleArrowIcon(
|
||||
props: { color: "primary" | "secondary" | "error" },
|
||||
@@ -158,6 +160,7 @@ export function SidebarRoot(props: { page: Page }): React.ReactElement {
|
||||
const canStockMarket = Player.hasWseAccount;
|
||||
const canBladeburner = !!Player.bladeburner;
|
||||
const canStaneksGift = Player.augmentations.some((aug) => aug.name === AugmentationName.StaneksGift1);
|
||||
const canIPvGO = playerHasDiscoveredGo();
|
||||
|
||||
const clickPage = useCallback(
|
||||
(page: Page) => {
|
||||
@@ -350,6 +353,7 @@ export function SidebarRoot(props: { page: Page }): React.ReactElement {
|
||||
canBladeburner && { key_: Page.Bladeburner, icon: FormatBoldIcon },
|
||||
canCorporation && { key_: Page.Corporation, icon: BusinessIcon },
|
||||
canGang && { key_: Page.Gang, icon: SportsMmaIcon },
|
||||
canIPvGO && { key_: Page.Go, icon: BorderInnerSharp },
|
||||
]}
|
||||
/>
|
||||
<Divider />
|
||||
|
||||
Reference in New Issue
Block a user