From c68093f71cc81edb6b1213f857a712e7b44b2a09 Mon Sep 17 00:00:00 2001 From: nickofolas <60761231+nickofolas@users.noreply.github.com> Date: Mon, 21 Mar 2022 14:25:58 -0500 Subject: [PATCH] Show Entropy in Augmentations page --- .../ui/InstalledAugmentations.tsx | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/Augmentation/ui/InstalledAugmentations.tsx b/src/Augmentation/ui/InstalledAugmentations.tsx index b83b985f7..b850e1504 100644 --- a/src/Augmentation/ui/InstalledAugmentations.tsx +++ b/src/Augmentation/ui/InstalledAugmentations.tsx @@ -17,6 +17,10 @@ import { OwnedAugmentationsOrderSetting } from "../../Settings/SettingEnums"; import Button from "@mui/material/Button"; import Tooltip from "@mui/material/Tooltip"; import List from "@mui/material/List"; +import { ExpandLess, ExpandMore } from "@mui/icons-material"; +import { Box, Paper, ListItemButton, ListItemText, Typography, Collapse } from "@mui/material"; +import { CONSTANTS } from "../../Constants"; +import { formatNumber } from "../../utils/StringHelperFunctions"; export function InstalledAugmentations(): React.ReactElement { const setRerender = useState(true)[1]; @@ -55,6 +59,38 @@ export function InstalledAugmentations(): React.ReactElement { + {player.entropyStacks > 0 && + (() => { + const [open, setOpen] = useState(false); + + return ( + + setOpen((old) => !old)}> + + Entropy ({player.entropyStacks} accumulated) + + } + /> + {open ? ( + + ) : ( + + )} + + + + + All multipliers decreased by:{" "} + {formatNumber((1 - CONSTANTS.EntropyEffect ** player.entropyStacks) * 100, 3)}% (multiplicative) + + + + + ); + })()} + {sourceAugs.map((e) => { const aug = Augmentations[e.name];