mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
City map use more letters than just X
This commit is contained in:
parent
d031a68fd2
commit
920b7325b4
14
dist/vendor.bundle.js
vendored
14
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -70,9 +70,12 @@ export function GoPublicModal(props: IProps): React.ReactElement {
|
||||
type="number"
|
||||
placeholder="Shares to issue"
|
||||
onKeyDown={onKeyDown}
|
||||
|
||||
/>
|
||||
<Button disabled={shares < 0||shares>corp.numShares} sx={{ mx: 1 }} onClick={goPublic}>
|
||||
<Button
|
||||
disabled={parseFloat(shares) < 0 || parseFloat(shares) > corp.numShares}
|
||||
sx={{ mx: 1 }}
|
||||
onClick={goPublic}
|
||||
>
|
||||
Go Public
|
||||
</Button>
|
||||
</Box>
|
||||
|
@ -16,6 +16,7 @@ import { use } from "../../ui/Context";
|
||||
import { IRouter } from "../../ui/Router";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Button from "@mui/material/Button";
|
||||
import { LocationType } from "../LocationTypeEnum";
|
||||
|
||||
type IProps = {
|
||||
city: City;
|
||||
@ -32,7 +33,19 @@ function toLocation(router: IRouter, location: Location): void {
|
||||
}
|
||||
|
||||
function LocationLetter(location: Location): React.ReactElement {
|
||||
location.types;
|
||||
const router = use.Router();
|
||||
let L = "X";
|
||||
if (location.types.includes(LocationType.Company)) L = "C";
|
||||
if (location.types.includes(LocationType.Gym)) L = "G";
|
||||
if (location.types.includes(LocationType.Hospital)) L = "H";
|
||||
if (location.types.includes(LocationType.Slums)) L = "S";
|
||||
if (location.types.includes(LocationType.StockMarket)) L = "$";
|
||||
if (location.types.includes(LocationType.TechVendor)) L = "T";
|
||||
if (location.types.includes(LocationType.TravelAgency)) L = "T";
|
||||
if (location.types.includes(LocationType.University)) L = "U";
|
||||
if (location.types.includes(LocationType.Casino)) L = "C";
|
||||
if (location.types.includes(LocationType.Special)) L = "?";
|
||||
if (!location) return <span>*</span>;
|
||||
return (
|
||||
<span
|
||||
@ -47,7 +60,7 @@ function LocationLetter(location: Location): React.ReactElement {
|
||||
}}
|
||||
onClick={() => toLocation(router, location)}
|
||||
>
|
||||
<b>X</b>
|
||||
<b>{L}</b>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user