mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-13 03:03:54 +01:00
allbuild commit b71418b0
This commit is contained in:
parent
b71418b08f
commit
3699b3aa25
4
dist/main.bundle.js
vendored
4
dist/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/main.bundle.js.map
vendored
2
dist/main.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
@ -32,7 +32,6 @@ export function purchaseTorRouter(p: IPlayer): void {
|
|||||||
|
|
||||||
p.getHomeComputer().serversOnNetwork.push(darkweb.hostname);
|
p.getHomeComputer().serversOnNetwork.push(darkweb.hostname);
|
||||||
darkweb.serversOnNetwork.push(p.getHomeComputer().hostname);
|
darkweb.serversOnNetwork.push(p.getHomeComputer().hostname);
|
||||||
console.log(darkweb);
|
|
||||||
dialogBoxCreate(
|
dialogBoxCreate(
|
||||||
"You have purchased a TOR router!<br>" +
|
"You have purchased a TOR router!<br>" +
|
||||||
"You now have access to the dark web from your home computer.<br>" +
|
"You now have access to the dark web from your home computer.<br>" +
|
||||||
|
@ -443,7 +443,7 @@ function evaluateVersionCompatibility(ver: string | number): void {
|
|||||||
Player.reapplyAllAugmentations(true);
|
Player.reapplyAllAugmentations(true);
|
||||||
Player.reapplyAllSourceFiles();
|
Player.reapplyAllSourceFiles();
|
||||||
}
|
}
|
||||||
if (ver < 19) {
|
if (ver < 20) {
|
||||||
// Create the darkweb for everyone but it won't be linked
|
// Create the darkweb for everyone but it won't be linked
|
||||||
const dw = GetServer(SpecialServers.DarkWeb);
|
const dw = GetServer(SpecialServers.DarkWeb);
|
||||||
if (!dw) {
|
if (!dw) {
|
||||||
|
@ -53,7 +53,7 @@ export function isValidDirectoryName(name: string): boolean {
|
|||||||
// Must be at least 1 character long
|
// Must be at least 1 character long
|
||||||
// Can only include characters in the character set [-.%a-zA-Z0-9_]
|
// Can only include characters in the character set [-.%a-zA-Z0-9_]
|
||||||
// Cannot end with a '.'
|
// Cannot end with a '.'
|
||||||
const regex = /^(?:[-.%]|\w)*[-%a-zA-Z0-9_]$/;
|
const regex = /^.?[a-zA-Z0-9_-]+$/;
|
||||||
|
|
||||||
// match() returns null if no match is found
|
// match() returns null if no match is found
|
||||||
return name.match(regex) != null;
|
return name.match(regex) != null;
|
||||||
@ -233,7 +233,7 @@ export function evaluateDirectoryPath(path: string, currPath?: string): string |
|
|||||||
|
|
||||||
// If the path begins with a slash, then its an absolute path. Otherwise its relative
|
// If the path begins with a slash, then its an absolute path. Otherwise its relative
|
||||||
// For relative paths, we need to prepend the current directory
|
// For relative paths, we need to prepend the current directory
|
||||||
if (!t_path.startsWith("/") && currPath != null) {
|
if (!t_path.startsWith("/") && currPath) {
|
||||||
t_path = currPath + (currPath.endsWith("/") ? "" : "/") + t_path;
|
t_path = currPath + (currPath.endsWith("/") ? "" : "/") + t_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user