diff --git a/css/activescripts.scss b/css/activescripts.scss
index 35e959558..f5f7593ba 100644
--- a/css/activescripts.scss
+++ b/css/activescripts.scss
@@ -6,7 +6,6 @@
.active-scripts-container {
> p {
- width: 70%;
margin: 6px;
padding: 4px;
}
diff --git a/css/augmentations.scss b/css/augmentations.scss
index 2615aa4d6..53193ae1e 100644
--- a/css/augmentations.scss
+++ b/css/augmentations.scss
@@ -8,7 +8,6 @@
.augmentations-content {
> p {
font-size: $defaultFontSize * 0.875;
- width: 70%;
}
}
diff --git a/css/hacknetnodes.scss b/css/hacknetnodes.scss
index f06b0b79a..97bf22122 100644
--- a/css/hacknetnodes.scss
+++ b/css/hacknetnodes.scss
@@ -7,7 +7,6 @@
.hacknet-general-info {
margin: 10px;
- width: 70vw;
}
#hacknet-nodes-container li {
diff --git a/src/Augmentation/AugmentationHelpers.d.ts b/src/Augmentation/AugmentationHelpers.d.ts
index 9e2bb7935..c20c69364 100644
--- a/src/Augmentation/AugmentationHelpers.d.ts
+++ b/src/Augmentation/AugmentationHelpers.d.ts
@@ -1 +1,2 @@
export declare function isRepeatableAug(aug: Augmentation): boolean;
+export declare function installAugmentations(): void;
diff --git a/src/Augmentation/ui/Root.tsx b/src/Augmentation/ui/AugmentationsRoot.tsx
similarity index 100%
rename from src/Augmentation/ui/Root.tsx
rename to src/Augmentation/ui/AugmentationsRoot.tsx
diff --git a/src/BitNode/ui/BitFlumePopup.tsx b/src/BitNode/ui/BitFlumePopup.tsx
index c8b9ffc4c..a915f356b 100644
--- a/src/BitNode/ui/BitFlumePopup.tsx
+++ b/src/BitNode/ui/BitFlumePopup.tsx
@@ -1,16 +1,17 @@
import React from "react";
-import { hackWorldDaemon } from "../../RedPill";
import { IPlayer } from "../../PersonObjects/IPlayer";
+import { IRouter } from "../../ui/Router";
import { removePopup } from "../../ui/React/createPopup";
interface IProps {
player: IPlayer;
+ router: IRouter;
popupId: string;
}
export function BitFlumePopup(props: IProps): React.ReactElement {
function flume(): void {
- hackWorldDaemon(props.player.bitNodeN, true, false);
+ props.router.toBitVerse(true, false);
removePopup(props.popupId);
}
return (
diff --git a/src/BitNode/ui/BitverseRoot.tsx b/src/BitNode/ui/BitverseRoot.tsx
index 1e6c2c1da..ecdd16fb7 100644
--- a/src/BitNode/ui/BitverseRoot.tsx
+++ b/src/BitNode/ui/BitverseRoot.tsx
@@ -1,18 +1,22 @@
import React, { useState } from "react";
import { SourceFileFlags } from "../../SourceFile/SourceFileFlags";
+import { IRouter } from "../../ui/Router";
import { BitNodes } from "../BitNode";
+import { enterBitNode } from "../../RedPill";
import { PortalPopup } from "./PortalPopup";
import { createPopup } from "../../ui/React/createPopup";
import { CinematicText } from "../../ui/React/CinematicText";
+import { use } from "../../ui/Context";
interface IPortalProps {
n: number;
level: number;
destroyedBitNode: number;
flume: boolean;
- enter: (flume: boolean, destroyedBitNode: number, newBitNode: number) => void;
+ enter: (router: IRouter, flume: boolean, destroyedBitNode: number, newBitNode: number) => void;
}
function BitNodePortal(props: IPortalProps): React.ReactElement {
+ const router = use.Router();
const bitNode = BitNodes[`BitNode${props.n}`];
if (bitNode == null) {
return <>O>;
@@ -32,6 +36,7 @@ function BitNodePortal(props: IPortalProps): React.ReactElement {
n: props.n,
level: props.level,
enter: props.enter,
+ router: router,
destroyedBitNode: props.destroyedBitNode,
flume: props.flume,
popupId: popupId,
@@ -57,18 +62,20 @@ function BitNodePortal(props: IPortalProps): React.ReactElement {
interface IProps {
flume: boolean;
- destroyedBitNodeNum: number;
quick: boolean;
- enter: (flume: boolean, destroyedBitNode: number, newBitNode: number) => void;
+ enter: (router: IRouter, flume: boolean, destroyedBitNode: number, newBitNode: number) => void;
}
export function BitverseRoot(props: IProps): React.ReactElement {
+ const player = use.Player();
+ const enter = enterBitNode;
+ const destroyed = player.bitNodeN;
const [destroySequence, setDestroySequence] = useState(true && !props.quick);
// Update NextSourceFileFlags
const nextSourceFileFlags = SourceFileFlags.slice();
if (!props.flume) {
- if (nextSourceFileFlags[props.destroyedBitNodeNum] < 3) ++nextSourceFileFlags[props.destroyedBitNodeNum];
+ if (nextSourceFileFlags[destroyed] < 3) ++nextSourceFileFlags[destroyed];
}
if (destroySequence) {
@@ -84,7 +91,7 @@ export function BitverseRoot(props: IProps): React.ReactElement {
"0020 7124696B 0000FF69 74652E6F FFFF1111",
"----------------------------------------",
"Failsafe initiated...",
- `Restarting BitNode-${props.destroyedBitNodeNum}...`,
+ `Restarting BitNode-${destroyed}...`,
"...........",
"...........",
"[ERROR] FAILED TO AUTOMATICALLY REBOOT BITNODE",
@@ -96,6 +103,7 @@ export function BitverseRoot(props: IProps): React.ReactElement {
"..............................................",
]}
onDone={() => setDestroySequence(false)}
+ auto={true}
/>
);
}
@@ -116,16 +124,16 @@ export function BitverseRoot(props: IProps): React.ReactElement {
\| O | |_/ |\| \ O \__| \_| | O |/
| | |_/ | | \| / | \_| | |
\| / \| | / / \ |/
- | | | / | |
- | | | | | | |
+ | | | / | |
+ | | | | | | |
| | | / / \ \ | | |
- \| | / / \ \ | |/
+ \| | / / \ \ | |/
\ | / / | | \ \ | /
- \ \JUMP 3R | | | | | | R3 PMUJ/ /
+ \ \JUMP 3R | | | | | | R3 PMUJ/ /
\|| | | | | | | | | ||/
\| \_ | | | | | | _/ |/
\ \| / \ / \ |/ /
- |/ | | \|
+ |/ | | \|
| | | | | | | |
\JUMP3R|JUMP|3R| |R3|PMUJ|R3PMUJ/
diff --git a/src/BitNode/ui/PortalPopup.tsx b/src/BitNode/ui/PortalPopup.tsx
index 600d632ff..dbcbfb3cf 100644
--- a/src/BitNode/ui/PortalPopup.tsx
+++ b/src/BitNode/ui/PortalPopup.tsx
@@ -1,13 +1,15 @@
import React from "react";
import { BitNodes } from "../BitNode";
+import { IRouter } from "../../ui/Router";
import { removePopup } from "../../ui/React/createPopup";
interface IProps {
n: number;
level: number;
destroyedBitNode: number;
flume: boolean;
- enter: (flume: boolean, destroyedBitNode: number, newBitNode: number) => void;
+ router: IRouter;
+ enter: (router: IRouter, flume: boolean, destroyedBitNode: number, newBitNode: number) => void;
popupId: string;
}
@@ -33,7 +35,7 @@ export function PortalPopup(props: IProps): React.ReactElement {