diff --git a/src/DarkWeb/DarkWeb.tsx b/src/DarkWeb/DarkWeb.tsx index fbe3c0696..9422e0b04 100644 --- a/src/DarkWeb/DarkWeb.tsx +++ b/src/DarkWeb/DarkWeb.tsx @@ -6,6 +6,7 @@ import { Terminal } from "../Terminal"; import { SpecialServers } from "../Server/data/SpecialServers"; import { Money } from "../ui/React/Money"; import { DarkWebItem } from "./DarkWebItem"; +import Typography from "@mui/material/Typography"; //Posts a "help" message if connected to DarkWeb export function checkIfConnectedToDarkweb(): void { @@ -22,10 +23,17 @@ export function checkIfConnectedToDarkweb(): void { export function listAllDarkwebItems(): void { for (const key in DarkWebItems) { const item = DarkWebItems[key]; + + const cost = Player.getHomeComputer().programs.includes(item.program) ? ( + [OWNED] + ) : ( + + ); + Terminal.printRaw( - <> - {item.program} - - {item.description} - , + + {item.program} - {cost} - {item.description} + , ); } }