mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
updated node starting messages actually show up (#397)
This commit is contained in:
@@ -257,6 +257,11 @@ export function prestigeSourceFile(flume: boolean): void {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BitNode 6: Bladeburners and BitNode 7: Bladeburners 2079
|
||||||
|
if (Player.bitNodeN === 6 || Player.bitNodeN === 7) {
|
||||||
|
dialogBoxCreate("NSA would like to have a word with you once you're ready.");
|
||||||
|
}
|
||||||
|
|
||||||
// BitNode 8: Ghost of Wall Street
|
// BitNode 8: Ghost of Wall Street
|
||||||
if (Player.bitNodeN === 8) {
|
if (Player.bitNodeN === 8) {
|
||||||
Player.money = BitNode8StartingMoney;
|
Player.money = BitNode8StartingMoney;
|
||||||
@@ -266,9 +271,16 @@ export function prestigeSourceFile(flume: boolean): void {
|
|||||||
Player.hasTixApiAccess = true;
|
Player.hasTixApiAccess = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bit Node 10: Digital Carbon
|
// BitNode 10: Digital Carbon
|
||||||
if (Player.bitNodeN === 10) {
|
if (Player.bitNodeN === 10) {
|
||||||
dialogBoxCreate("Visit VitaLife in New Tokyo if you'd like to purchase a new sleeve!");
|
dialogBoxCreate(
|
||||||
|
"Seek out The Covenant if you'd like to purchase a new sleeve or two! And see what VitaLife in New Tokyo has to offer for you",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// BitNode 12: Digital Carbon
|
||||||
|
if (Player.bitNodeN === 12 && Player.sourceFileLvl(10) > 100) {
|
||||||
|
dialogBoxCreate("Saynt_Garmo is watching you");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Player.bitNodeN === 13) {
|
if (Player.bitNodeN === 13) {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/** Implementation for what happens when you destroy a BitNode */
|
/** Implementation for what happens when you destroy a BitNode */
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Player } from "@player";
|
import { Player } from "@player";
|
||||||
import { prestigeSourceFile } from "./Prestige";
|
|
||||||
import { PlayerOwnedSourceFile } from "./SourceFile/PlayerOwnedSourceFile";
|
import { PlayerOwnedSourceFile } from "./SourceFile/PlayerOwnedSourceFile";
|
||||||
import { SourceFiles } from "./SourceFile/SourceFiles";
|
import { SourceFiles } from "./SourceFile/SourceFiles";
|
||||||
|
|
||||||
import { dialogBoxCreate } from "./ui/React/DialogBox";
|
import { dialogBoxCreate } from "./ui/React/DialogBox";
|
||||||
import { Router } from "./ui/GameRoot";
|
import { Router } from "./ui/GameRoot";
|
||||||
import { Page } from "./ui/Router";
|
import { Page } from "./ui/Router";
|
||||||
|
import { Engine } from "./engine";
|
||||||
|
|
||||||
function giveSourceFile(bitNodeNumber: number): void {
|
function giveSourceFile(bitNodeNumber: number): void {
|
||||||
const sourceFileKey = "SourceFile" + bitNodeNumber.toString();
|
const sourceFileKey = "SourceFile" + bitNodeNumber.toString();
|
||||||
@@ -73,5 +73,5 @@ export function enterBitNode(flume: boolean, destroyedBitNode: number, newBitNod
|
|||||||
} else {
|
} else {
|
||||||
Router.toPage(Page.Terminal);
|
Router.toPage(Page.Terminal);
|
||||||
}
|
}
|
||||||
prestigeSourceFile(flume);
|
Engine.nodeTransfer = flume;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,11 +44,13 @@ import React from "react";
|
|||||||
import { setupUncaughtPromiseHandler } from "./UncaughtPromiseHandler";
|
import { setupUncaughtPromiseHandler } from "./UncaughtPromiseHandler";
|
||||||
import { Button, Typography } from "@mui/material";
|
import { Button, Typography } from "@mui/material";
|
||||||
import { SnackbarEvents, ToastVariant } from "./ui/React/Snackbar";
|
import { SnackbarEvents, ToastVariant } from "./ui/React/Snackbar";
|
||||||
|
import { prestigeSourceFile } from "./Prestige";
|
||||||
|
|
||||||
/** Game engine. Handles the main game loop. */
|
/** Game engine. Handles the main game loop. */
|
||||||
const Engine: {
|
const Engine: {
|
||||||
_lastUpdate: number;
|
_lastUpdate: number;
|
||||||
updateGame: (numCycles?: number) => void;
|
updateGame: (numCycles?: number) => void;
|
||||||
|
nodeTransfer: boolean | undefined;
|
||||||
Counters: {
|
Counters: {
|
||||||
[key: string]: number | undefined;
|
[key: string]: number | undefined;
|
||||||
autoSaveCounter: number;
|
autoSaveCounter: number;
|
||||||
@@ -72,8 +74,12 @@ const Engine: {
|
|||||||
} = {
|
} = {
|
||||||
// Time variables (milliseconds unix epoch time)
|
// Time variables (milliseconds unix epoch time)
|
||||||
_lastUpdate: new Date().getTime(),
|
_lastUpdate: new Date().getTime(),
|
||||||
|
nodeTransfer: undefined,
|
||||||
updateGame: function (numCycles = 1) {
|
updateGame: function (numCycles = 1) {
|
||||||
|
if (this.nodeTransfer != undefined) {
|
||||||
|
prestigeSourceFile(this.nodeTransfer);
|
||||||
|
this.nodeTransfer = undefined;
|
||||||
|
}
|
||||||
const time = numCycles * CONSTANTS.MilliPerCycle;
|
const time = numCycles * CONSTANTS.MilliPerCycle;
|
||||||
if (Player.totalPlaytime == null) {
|
if (Player.totalPlaytime == null) {
|
||||||
Player.totalPlaytime = 0;
|
Player.totalPlaytime = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user