mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 10:42:51 +02:00
DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
This commit is contained in:
committed by
GitHub
parent
a674633f6c
commit
6073964768
@@ -13,14 +13,12 @@
|
||||
|
||||
import { Player } from "@player";
|
||||
import { AugmentationName, CityName, CodingContractName, LocationName } from "@enums";
|
||||
import { AddToAllServers, createUniqueRandomIp, GetAllServers, GetServer, renameServer } from "../Server/AllServers";
|
||||
import { GetAllServers, renameServer } from "../Server/AllServers";
|
||||
import { StockMarket } from "../StockMarket/StockMarket";
|
||||
import { AwardNFG, v1APIBreak } from "./v1APIBreak";
|
||||
import { Settings } from "../Settings/Settings";
|
||||
import { defaultMonacoTheme } from "../ScriptEditor/ui/themes";
|
||||
import { PlayerOwnedAugmentation } from "../Augmentation/PlayerOwnedAugmentation";
|
||||
import { SpecialServers } from "../Server/data/SpecialServers";
|
||||
import { safelyCreateUniqueServer } from "../Server/ServerHelpers";
|
||||
import { v2APIBreak } from "./v2APIBreak";
|
||||
import { Terminal } from "../Terminal";
|
||||
import { getRecordValues } from "../Types/Record";
|
||||
@@ -36,6 +34,7 @@ import type { PositiveInteger } from "../types";
|
||||
import { officeInitialCost, officeInitialSize, warehouseInitialCost } from "../Corporation/data/Constants";
|
||||
import { load } from "../db";
|
||||
import { downloadContentAsFile } from "./FileUtils";
|
||||
import { initDarkwebServer } from "../DarkNet/controllers/NetworkGenerator";
|
||||
|
||||
/** Function for performing a series of defined replacements. See 0.58.0 for usage */
|
||||
function convert(code: string, changes: [RegExp, string][]): string {
|
||||
@@ -240,22 +239,6 @@ export async function evaluateVersionCompatibility(ver: string | number): Promis
|
||||
Player.reapplyAllSourceFiles();
|
||||
}
|
||||
|
||||
if (ver < 20) {
|
||||
// Create the darkweb for everyone but it won't be linked
|
||||
const dw = GetServer(SpecialServers.DarkWeb);
|
||||
if (!dw) {
|
||||
const darkweb = safelyCreateUniqueServer({
|
||||
ip: createUniqueRandomIp(),
|
||||
hostname: SpecialServers.DarkWeb,
|
||||
organizationName: "",
|
||||
isConnectedTo: false,
|
||||
adminRights: false,
|
||||
purchasedByPlayer: false,
|
||||
maxRam: 1,
|
||||
});
|
||||
AddToAllServers(darkweb);
|
||||
}
|
||||
}
|
||||
if (ver < 21) {
|
||||
// 2.0.0 work rework
|
||||
AwardNFG(10);
|
||||
@@ -640,6 +623,7 @@ Error: ${e}`,
|
||||
}
|
||||
}
|
||||
if (ver < 45) {
|
||||
initDarkwebServer();
|
||||
showAPIBreaks("3.0.0", breakingChanges300);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user