/** * React Component for displaying a list of the player's Source-Files * on the Augmentations UI */ import React, { useState } from "react"; import { Player } from "../../Player"; import { Exploit, ExploitName } from "../../Exploits/Exploit"; import ListItemButton from "@mui/material/ListItemButton"; import ListItemText from "@mui/material/ListItemText"; import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import Paper from "@mui/material/Paper"; import Collapse from "@mui/material/Collapse"; import ExpandMore from "@mui/icons-material/ExpandMore"; import ExpandLess from "@mui/icons-material/ExpandLess"; export function SourceFileMinus1(): React.ReactElement { const [open, setOpen] = useState(false); const exploits = Player.exploits; if (exploits.length === 0) { return <>; } return ( setOpen((old) => !old)}> Source-File -1: Exploits in the BitNodes
Level {exploits.length} / {Object.keys(Exploit).length} } /> {open ? : }
This Source-File can only be acquired with obscure knowledge of the game, javascript, and the web ecosystem. It increases all of the player's multipliers by 0.1%
You have found the following exploits: {exploits.map((c: Exploit) => ( * {ExploitName(c)} ))}
); }