BLADEBURNER: Show operation description in tooltip of completed BlackOps (#1941)

This commit is contained in:
catloversg
2025-02-01 02:16:39 +07:00
committed by GitHub
parent 822c55574d
commit 686bfe5aef
2 changed files with 8 additions and 3 deletions

View File

@@ -2,7 +2,8 @@ import type { Bladeburner } from "../Bladeburner";
import type { BlackOperation } from "../Actions/BlackOperation";
import React from "react";
import { Paper, Typography } from "@mui/material";
import { Paper, Typography, Tooltip } from "@mui/material";
import { Info } from "@mui/icons-material";
import { Player } from "@player";
import { formatNumberNoSuffix } from "../../ui/formatNumber";
@@ -22,7 +23,11 @@ export function BlackOpElem({ bladeburner, action }: BlackOpElemProps): React.Re
if (isCompleted) {
return (
<Paper sx={{ my: 1, p: 1 }}>
<Typography>{action.name} (COMPLETED)</Typography>
<Tooltip title={action.desc}>
<Typography>
{action.name} (COMPLETED) <Info sx={{ fontSize: "1.1em" }} />
</Typography>
</Tooltip>
</Paper>
);
}

View File

@@ -25,7 +25,7 @@ export function SuccessChance({ bladeburner, action }: SuccessChanceProps): Reac
<Tooltip title={action.successScaling ? <Typography>{action.successScaling}</Typography> : ""}>
<Typography component="span" sx={{ marginRight: "15px" }}>
Estimated success chance: {chance}
{action.successScaling && <InfoIcon sx={{ fontSize: "1.1rem", marginLeft: "10px" }} />}
{action.successScaling && <InfoIcon sx={{ fontSize: "1.1em", marginLeft: "10px" }} />}
</Typography>
</Tooltip>
{action.isStealth ? <StealthIcon /> : <></>}