mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Update Victory
This commit is contained in:
parent
b772d5157e
commit
ae8b6d088e
@ -152,6 +152,7 @@ const positive = [
|
|||||||
"patient",
|
"patient",
|
||||||
"dynamic",
|
"dynamic",
|
||||||
"loyal",
|
"loyal",
|
||||||
|
"based",
|
||||||
];
|
];
|
||||||
|
|
||||||
const negative = [
|
const negative = [
|
||||||
@ -175,4 +176,5 @@ const negative = [
|
|||||||
"picky",
|
"picky",
|
||||||
"tactless",
|
"tactless",
|
||||||
"thoughtless",
|
"thoughtless",
|
||||||
|
"cringe",
|
||||||
];
|
];
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { Button, Container, Paper, Typography } from "@mui/material";
|
import { Button, Container, Paper, Typography } from "@mui/material";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
|
import { Location } from "../../Locations/Location";
|
||||||
import { AugmentationNames } from "../../Augmentation/data/AugmentationNames";
|
import { AugmentationNames } from "../../Augmentation/data/AugmentationNames";
|
||||||
import { use } from "../../ui/Context";
|
import { use } from "../../ui/Context";
|
||||||
import { BackwardGame } from "./BackwardGame";
|
import { BackwardGame } from "./BackwardGame";
|
||||||
@ -139,9 +140,11 @@ export function Game(props: IProps): React.ReactElement {
|
|||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Paper sx={{ p: 1, mb: 1, display: "grid", justifyItems: "center", gap: 1 }}>
|
<Paper sx={{ p: 1, mb: 1, display: "grid", justifyItems: "center", gap: 1 }}>
|
||||||
|
{stage !== Stage.Sell && (
|
||||||
<Button sx={{ width: "100%" }} onClick={cancel}>
|
<Button sx={{ width: "100%" }} onClick={cancel}>
|
||||||
Cancel
|
Cancel Infiltration
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
<Typography variant="h5">
|
<Typography variant="h5">
|
||||||
Level {level} / {props.MaxLevel}
|
Level {level} / {props.MaxLevel}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
import { Factions } from "../../Faction/Factions";
|
import { Factions } from "../../Faction/Factions";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import Grid from "@mui/material/Grid";
|
|
||||||
import { Money } from "../../ui/React/Money";
|
import { Money } from "../../ui/React/Money";
|
||||||
import { Reputation } from "../../ui/React/Reputation";
|
import { Reputation } from "../../ui/React/Reputation";
|
||||||
import { use } from "../../ui/Context";
|
import { use } from "../../ui/Context";
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import Button from "@mui/material/Button";
|
|
||||||
import MenuItem from "@mui/material/MenuItem";
|
|
||||||
import Select, { SelectChangeEvent } from "@mui/material/Select";
|
|
||||||
import { FactionNames } from "../../Faction/data/FactionNames";
|
import { FactionNames } from "../../Faction/data/FactionNames";
|
||||||
import { formatNumber } from "../../utils/StringHelperFunctions";
|
import { formatNumber } from "../../utils/StringHelperFunctions";
|
||||||
import {
|
import {
|
||||||
@ -16,6 +11,8 @@ import {
|
|||||||
calculateTradeInformationRepReward,
|
calculateTradeInformationRepReward,
|
||||||
} from "../formulas/victory";
|
} from "../formulas/victory";
|
||||||
import { inviteToFaction } from "../../Faction/FactionHelpers";
|
import { inviteToFaction } from "../../Faction/FactionHelpers";
|
||||||
|
import { Button, MenuItem, Select, SelectChangeEvent, Paper, Typography, Box } from "@mui/material";
|
||||||
|
import { Location } from "../../Locations/Location";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
StartingDifficulty: number;
|
StartingDifficulty: number;
|
||||||
@ -66,13 +63,9 @@ export function Victory(props: IProps): React.ReactElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<Paper sx={{ p: 1, textAlign: "center", display: "flex", alignItems: "center", flexDirection: "column" }}>
|
||||||
<Grid container spacing={3}>
|
|
||||||
<Grid item xs={10}>
|
|
||||||
<Typography variant="h4">Infiltration successful!</Typography>
|
<Typography variant="h4">Infiltration successful!</Typography>
|
||||||
</Grid>
|
<Typography variant="h5" color="primary" width="75%">
|
||||||
<Grid item xs={10}>
|
|
||||||
<Typography variant="h5" color="primary">
|
|
||||||
You{" "}
|
You{" "}
|
||||||
{isMemberOfInfiltrators ? (
|
{isMemberOfInfiltrators ? (
|
||||||
<>
|
<>
|
||||||
@ -83,7 +76,9 @@ export function Victory(props: IProps): React.ReactElement {
|
|||||||
)}
|
)}
|
||||||
can trade the confidential information you found for money or reputation.
|
can trade the confidential information you found for money or reputation.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Select value={faction} onChange={changeDropdown}>
|
<Box sx={{ width: "fit-content" }}>
|
||||||
|
<Box sx={{ width: "100%" }}>
|
||||||
|
<Select value={faction} onChange={changeDropdown} sx={{ mr: 1 }}>
|
||||||
<MenuItem key={"none"} value={"none"}>
|
<MenuItem key={"none"} value={"none"}>
|
||||||
{"none"}
|
{"none"}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
@ -98,17 +93,15 @@ export function Victory(props: IProps): React.ReactElement {
|
|||||||
<Button onClick={trade}>
|
<Button onClick={trade}>
|
||||||
Trade for <Reputation reputation={repGain} /> reputation
|
Trade for <Reputation reputation={repGain} /> reputation
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Box>
|
||||||
<Grid item xs={3}>
|
<Button onClick={sell} sx={{ width: "100%" }}>
|
||||||
<Button onClick={sell}>
|
|
||||||
Sell for
|
Sell for
|
||||||
<Money money={moneyGain} />
|
<Money money={moneyGain} />
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Box>
|
||||||
<Grid item xs={3}>
|
<Button onClick={quitInfiltration} sx={{ width: "100%", mt: 1 }}>
|
||||||
<Button onClick={quitInfiltration}>Quit</Button>
|
Quit
|
||||||
</Grid>
|
</Button>
|
||||||
</Grid>
|
</Paper>
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user