diff --git a/src/Programs/ui/ProgramsRoot.tsx b/src/Programs/ui/ProgramsRoot.tsx index db2475334..6f2b35194 100644 --- a/src/Programs/ui/ProgramsRoot.tsx +++ b/src/Programs/ui/ProgramsRoot.tsx @@ -1,6 +1,6 @@ import React, { useEffect } from "react"; import { find } from "lodash"; -import { Box, Typography, Button, Container, Paper } from "@mui/material"; +import { Box, Typography, Button, Container, Paper, Tooltip } from "@mui/material"; import { Check, Lock, Create } from "@mui/icons-material"; import { Player } from "@player"; @@ -72,6 +72,7 @@ export function ProgramsRoot(): React.ReactElement { const create = program.create; if (create === null) return <>; const curCompletion = getProgCompletion(program.name); + const hackingLevelRemaining = getHackingLevelRemaining(create.level); return ( ))} - {Player.hasProgram(program.name) || getHackingLevelRemaining(create.level) === 0 || ( - - Unlocks in: {getHackingLevelRemaining(create.level)} hacking levels - + {Player.hasProgram(program.name) || hackingLevelRemaining === 0 || ( + Unlocks after you gain {hackingLevelRemaining} more hacking levels}> + + Unlocks at hacking level: {Player.skills.hacking + hackingLevelRemaining} + + )} {curCompletion !== -1 && (