mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
CODEBASE: Fix typo of "CorruptableText" (#2144)
This commit is contained in:
@@ -7,7 +7,7 @@ import { AchievementEntry } from "./AchievementEntry";
|
||||
import { Achievement, PlayerAchievement } from "./Achievements";
|
||||
import { Settings } from "../Settings/Settings";
|
||||
import { getFiltersFromHex } from "../ThirdParty/colorUtils";
|
||||
import { CorruptableText } from "../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../ui/React/CorruptibleText";
|
||||
import { pluralize } from "../utils/I18nUtils";
|
||||
|
||||
interface IProps {
|
||||
@@ -83,7 +83,7 @@ export function AchievementList({ achievements, playerAchievements }: IProps): J
|
||||
<Typography color="secondary" sx={{ mt: 1 }}>
|
||||
{secret.map((item) => (
|
||||
<span key={`secret_${item.achievement.ID}`}>
|
||||
<CorruptableText content={item.achievement.ID} spoiler={true}></CorruptableText>
|
||||
<CorruptibleText content={item.achievement.ID} spoiler={true}></CorruptibleText>
|
||||
<br />
|
||||
</span>
|
||||
))}
|
||||
|
||||
@@ -6,7 +6,7 @@ import { FactionName } from "@enums";
|
||||
import { BlackOpElem } from "./BlackOpElem";
|
||||
import { Router } from "../../ui/GameRoot";
|
||||
import { Page } from "../../ui/Router";
|
||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../../ui/React/CorruptibleText";
|
||||
import { blackOpsArray } from "../data/BlackOperations";
|
||||
import { GetServer } from "../../Server/AllServers";
|
||||
import { SpecialServers } from "../../Server/data/SpecialServers";
|
||||
@@ -47,7 +47,7 @@ export function BlackOpPage({ bladeburner }: BlackOpPageProps): React.ReactEleme
|
||||
</Typography>
|
||||
{bladeburner.numBlackOpsComplete >= blackOpsArray.length ? (
|
||||
<Button sx={{ my: 1, p: 1 }} onClick={finishBitNode}>
|
||||
<CorruptableText content="Destroy w0r1d_d43m0n" spoiler={false}></CorruptableText>
|
||||
<CorruptibleText content="Destroy w0r1d_d43m0n" spoiler={false}></CorruptibleText>
|
||||
</Button>
|
||||
) : (
|
||||
<>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { formatFavor, formatReputation } from "../../ui/formatNumber";
|
||||
import { Router } from "../../ui/GameRoot";
|
||||
import { Page } from "../../ui/Router";
|
||||
import { useCycleRerender } from "../../ui/React/hooks";
|
||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../../ui/React/CorruptibleText";
|
||||
import { Requirement } from "../../ui/Components/Requirement";
|
||||
|
||||
import { Faction } from "../Faction";
|
||||
@@ -137,7 +137,7 @@ const FactionElement = (props: FactionElementProps): React.ReactElement => {
|
||||
) : (
|
||||
<Tooltip title={"Rumored Faction"}>
|
||||
<span style={{ overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }}>
|
||||
<CorruptableText content={props.faction.name} spoiler={false} />
|
||||
<CorruptibleText content={props.faction.name} spoiler={false} />
|
||||
</span>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
@@ -22,7 +22,7 @@ import { Settings } from "../../Settings/Settings";
|
||||
import { GoScoreModal } from "./GoScoreModal";
|
||||
import { GoGameboard } from "./GoGameboard";
|
||||
import { GoSubnetSearch } from "./GoSubnetSearch";
|
||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../../ui/React/CorruptibleText";
|
||||
import { handleNextTurn, resetGoPromises } from "../boardAnalysis/goAI";
|
||||
import { GoScoreExplanation } from "./GoScoreExplanation";
|
||||
import { exceptionAlert } from "../../utils/helpers/exceptionAlert";
|
||||
@@ -215,7 +215,7 @@ export function GoGameboardWrapper({ showInstructions }: GoGameboardWrapperProps
|
||||
<Typography variant={"h6"} className={classes.opponentLabel}>
|
||||
{Go.currentGame.ai !== GoOpponent.none ? "Subnet owner: " : ""}{" "}
|
||||
{Go.currentGame.ai === GoOpponent.w0r1d_d43m0n ? (
|
||||
<CorruptableText content={Go.currentGame.ai} spoiler={false} />
|
||||
<CorruptibleText content={Go.currentGame.ai} spoiler={false} />
|
||||
) : (
|
||||
Go.currentGame.ai
|
||||
)}
|
||||
|
||||
@@ -11,7 +11,7 @@ import { getBonusText, getMaxRep } from "../effects/effect";
|
||||
import { formatNumber } from "../../ui/formatNumber";
|
||||
import { GoScoreSummaryTable } from "./GoScoreSummaryTable";
|
||||
import { getNewBoardState } from "../boardState/boardState";
|
||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../../ui/React/CorruptibleText";
|
||||
import { getRecordKeys } from "../../Types/Record";
|
||||
|
||||
export const GoHistoryPage = (): React.ReactElement => {
|
||||
@@ -54,7 +54,7 @@ export const GoHistoryPage = (): React.ReactElement => {
|
||||
{" "}
|
||||
<strong className={classes.keyText}>
|
||||
{faction === GoOpponent.w0r1d_d43m0n ? (
|
||||
<CorruptableText content="????????????" spoiler={false} />
|
||||
<CorruptibleText content="????????????" spoiler={false} />
|
||||
) : (
|
||||
faction
|
||||
)}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { boardSizes, opponentDetails } from "../Constants";
|
||||
import { boardStyles } from "../boardState/goStyles";
|
||||
import { Modal } from "../../ui/React/Modal";
|
||||
import { getHandicap } from "../boardState/boardState";
|
||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../../ui/React/CorruptibleText";
|
||||
import { Settings } from "../../Settings/Settings";
|
||||
import { getOpponentStats } from "../boardAnalysis/scoring";
|
||||
import { showWorldDemon } from "../boardAnalysis/goAI";
|
||||
@@ -75,7 +75,7 @@ export const GoSubnetSearch = ({ open, search, cancel, showInstructions }: IProp
|
||||
{opponentFactions.map((faction) => (
|
||||
<MenuItem key={faction} value={faction}>
|
||||
{faction === GoOpponent.w0r1d_d43m0n ? (
|
||||
<CorruptableText content="???????????????" spoiler={false} />
|
||||
<CorruptibleText content="???????????????" spoiler={false} />
|
||||
) : (
|
||||
`${faction} (${opponentDetails[faction].description})`
|
||||
)}
|
||||
@@ -122,8 +122,8 @@ export const GoSubnetSearch = ({ open, search, cancel, showInstructions }: IProp
|
||||
<Typography>
|
||||
{opponent === GoOpponent.w0r1d_d43m0n ? (
|
||||
<>
|
||||
<CorruptableText content={opponentDetails[opponent].flavorText.slice(0, 40)} spoiler={false} />
|
||||
<CorruptableText content={opponentDetails[opponent].flavorText.slice(40)} spoiler={false} />
|
||||
<CorruptibleText content={opponentDetails[opponent].flavorText.slice(0, 40)} spoiler={false} />
|
||||
<CorruptibleText content={opponentDetails[opponent].flavorText.slice(40)} spoiler={false} />
|
||||
</>
|
||||
) : (
|
||||
opponentDetails[opponent].flavorText
|
||||
|
||||
@@ -24,7 +24,7 @@ import { LocationType } from "@enums";
|
||||
import { isBackdoorInstalled } from "../../Server/ServerHelpers";
|
||||
import { GetServer } from "../../Server/AllServers";
|
||||
|
||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../../ui/React/CorruptibleText";
|
||||
import { Router } from "../../ui/GameRoot";
|
||||
import { Page } from "../../ui/Router";
|
||||
import { serverMetadata } from "../../Server/data/servers";
|
||||
@@ -118,7 +118,7 @@ export function GenericLocation({ location, showBackButton }: IProps): React.Rea
|
||||
{backdoorInstalled && serverMeta ? (
|
||||
<Tooltip title={`Backdoor installed on ${serverMeta.hostname}.`}>
|
||||
<span>
|
||||
<CorruptableText content={location.name} spoiler={false} />
|
||||
<CorruptibleText content={location.name} spoiler={false} />
|
||||
</span>
|
||||
</Tooltip>
|
||||
) : (
|
||||
|
||||
@@ -29,7 +29,7 @@ import { SnackbarEvents } from "../../ui/React/Snackbar";
|
||||
import { N00dles } from "../../utils/helpers/N00dles";
|
||||
import { Exploit } from "../../Exploits/Exploit";
|
||||
import { applyAugmentation } from "../../Augmentation/AugmentationHelpers";
|
||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||
import { CorruptibleText } from "../../ui/React/CorruptibleText";
|
||||
import { HacknetNode } from "../../Hacknet/HacknetNode";
|
||||
import { HacknetServer } from "../../Hacknet/HacknetServer";
|
||||
import { GetServer } from "../../Server/AllServers";
|
||||
@@ -329,7 +329,7 @@ export function SpecialLocation(props: SpecialLocationProps): React.ReactElement
|
||||
return (
|
||||
<>
|
||||
<Typography>
|
||||
<CorruptableText content={"An eerie aura surrounds this area. You feel you should leave."} spoiler={false} />
|
||||
<CorruptibleText content={"An eerie aura surrounds this area. You feel you should leave."} spoiler={false} />
|
||||
</Typography>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { Link } from "@mui/material";
|
||||
import { useNavigator } from "../React/Documentation";
|
||||
import { CorruptableText } from "../React/CorruptableText";
|
||||
import { CorruptibleText } from "../React/CorruptibleText";
|
||||
import { Player } from "@player";
|
||||
import { getNsApiDocumentationUrl } from "../../utils/StringHelperFunctions";
|
||||
import { Settings } from "../../Settings/Settings";
|
||||
@@ -46,7 +46,7 @@ export const A = (props: React.PropsWithChildren<{ href?: string }>): React.Reac
|
||||
cursor: "pointer",
|
||||
}}
|
||||
>
|
||||
<CorruptableText content={String(props.children)} spoiler={true} />
|
||||
<CorruptibleText content={String(props.children)} spoiler={true} />
|
||||
</span>
|
||||
);
|
||||
return (
|
||||
|
||||
@@ -5,7 +5,7 @@ function replace(str: string, i: number, char: string): string {
|
||||
return str.substring(0, i) + char + str.substring(i + 1);
|
||||
}
|
||||
|
||||
interface CorruptableTextProps {
|
||||
interface CorruptibleTextProps {
|
||||
content: string;
|
||||
spoiler: boolean;
|
||||
}
|
||||
@@ -26,7 +26,7 @@ function randomize(char: string, obfuscate: boolean): string {
|
||||
return randFrom(other);
|
||||
}
|
||||
|
||||
export function CorruptableText(props: CorruptableTextProps): JSX.Element {
|
||||
export function CorruptibleText(props: CorruptibleTextProps): JSX.Element {
|
||||
const [content, setContent] = useState(props.content);
|
||||
|
||||
useEffect(() => {
|
||||
Reference in New Issue
Block a user