mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
UI: Added new locale-aware and configurable number formatting (#354)
This commit is contained in:
@@ -22,7 +22,7 @@ import { Player } from "@player";
|
||||
import { AugmentationNames } from "../data/AugmentationNames";
|
||||
import { StaticAugmentations } from "../StaticAugmentations";
|
||||
import { CONSTANTS } from "../../Constants";
|
||||
import { formatNumber } from "../../utils/StringHelperFunctions";
|
||||
import { formatNumberNoSuffix } from "../../ui/formatNumber";
|
||||
import { Info } from "@mui/icons-material";
|
||||
import { Link } from "@mui/material";
|
||||
import { AlertEvents } from "../../ui/React/AlertManager";
|
||||
@@ -68,8 +68,8 @@ const EntropyDisplay = (): React.ReactElement => {
|
||||
Entropy Virus - Level {Player.entropy}
|
||||
</Typography>
|
||||
<Typography color={Settings.theme.error}>
|
||||
<b>All multipliers decreased by:</b> {formatNumber((1 - CONSTANTS.EntropyEffect ** Player.entropy) * 100, 3)}%
|
||||
(multiplicative)
|
||||
<b>All multipliers decreased by:</b>{" "}
|
||||
{formatNumberNoSuffix((1 - CONSTANTS.EntropyEffect ** Player.entropy) * 100, 3)}% (multiplicative)
|
||||
</Typography>
|
||||
</Paper>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user