mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 18:22:58 +02:00
Vendored
+16
-16
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -112,9 +112,9 @@ Cities[CityName.Ishima].asciiArt = `
|
|||||||
o | / \\ o-------x------o
|
o | / \\ o-------x------o
|
||||||
/ o / \\ /
|
/ o / \\ /
|
||||||
48 o / 55 x \\ /
|
48 o / 55 x \\ /
|
||||||
\\ / / x
|
\\ / / x [glitch]
|
||||||
\\ / [nova medical] / 4/30 \\
|
\\ / [nova medical] / 4/30 \\
|
||||||
49 x A \\
|
49 x A \\ H
|
||||||
/ \\ / \\
|
/ \\ / \\
|
||||||
/ \\ [travel agency] F o 31
|
/ \\ [travel agency] F o 31
|
||||||
/ \\ 51 /
|
/ \\ 51 /
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ export enum LocationName {
|
|||||||
IshimaNovaMedical = "Nova Medical",
|
IshimaNovaMedical = "Nova Medical",
|
||||||
IshimaOmegaSoftware = "Omega Software",
|
IshimaOmegaSoftware = "Omega Software",
|
||||||
IshimaStormTechnologies = "Storm Technologies",
|
IshimaStormTechnologies = "Storm Technologies",
|
||||||
|
IshimaGlitch = "0x6C1",
|
||||||
|
|
||||||
// Volhaven
|
// Volhaven
|
||||||
VolhavenCompuTek = "CompuTek",
|
VolhavenCompuTek = "CompuTek",
|
||||||
|
|||||||
@@ -445,4 +445,9 @@ export const LocationsMetadata: IConstructorParams[] = [
|
|||||||
name: LocationName.ChongqingChurchOfTheMachineGod,
|
name: LocationName.ChongqingChurchOfTheMachineGod,
|
||||||
types: [LocationType.Special],
|
types: [LocationType.Special],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
city: CityName.Ishima,
|
||||||
|
name: LocationName.IshimaGlitch,
|
||||||
|
types: [LocationType.Special],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import { SnackbarEvents } from "../../ui/React/Snackbar";
|
|||||||
import { N00dles } from "../../utils/helpers/N00dles";
|
import { N00dles } from "../../utils/helpers/N00dles";
|
||||||
import { Exploit } from "../../Exploits/Exploit";
|
import { Exploit } from "../../Exploits/Exploit";
|
||||||
import { applyAugmentation } from "../../Augmentation/AugmentationHelpers";
|
import { applyAugmentation } from "../../Augmentation/AugmentationHelpers";
|
||||||
|
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
loc: Location;
|
loc: Location;
|
||||||
@@ -252,6 +253,16 @@ export function SpecialLocation(props: IProps): React.ReactElement {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function renderGlitch(): React.ReactElement {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Typography>
|
||||||
|
<CorruptableText content={"An eerie aura surround this area. You feel you should leave."} />
|
||||||
|
</Typography>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
switch (props.loc.name) {
|
switch (props.loc.name) {
|
||||||
case LocationName.NewTokyoVitaLife: {
|
case LocationName.NewTokyoVitaLife: {
|
||||||
return renderResleeving();
|
return renderResleeving();
|
||||||
@@ -268,6 +279,9 @@ export function SpecialLocation(props: IProps): React.ReactElement {
|
|||||||
case LocationName.ChongqingChurchOfTheMachineGod: {
|
case LocationName.ChongqingChurchOfTheMachineGod: {
|
||||||
return renderCotMG();
|
return renderCotMG();
|
||||||
}
|
}
|
||||||
|
case LocationName.IshimaGlitch: {
|
||||||
|
return renderGlitch();
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
console.error(`Location ${props.loc.name} doesn't have any special properties`);
|
console.error(`Location ${props.loc.name} doesn't have any special properties`);
|
||||||
return <></>;
|
return <></>;
|
||||||
|
|||||||
@@ -31,11 +31,11 @@ export function CorruptableText(props: IProps): JSX.Element {
|
|||||||
counter = Math.random() * 5;
|
counter = Math.random() * 5;
|
||||||
const index = Math.random() * content.length;
|
const index = Math.random() * content.length;
|
||||||
const letter = content.charAt(index);
|
const letter = content.charAt(index);
|
||||||
setContent(replace(content, index, randomize(letter)));
|
setContent((content) => replace(content, index, randomize(letter)));
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setContent(content);
|
setContent((content) => replace(content, index, letter));
|
||||||
}, 50);
|
}, 500);
|
||||||
}, 100);
|
}, 20);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
clearInterval(id);
|
clearInterval(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user