mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-05 12:57:35 +01:00
fix home ram tooltip
This commit is contained in:
parent
2b994f244d
commit
758b0e1127
@ -11,6 +11,7 @@ import { Money } from "../../ui/React/Money";
|
|||||||
import { numeralWrapper } from "../../ui/numeralFormat";
|
import { numeralWrapper } from "../../ui/numeralFormat";
|
||||||
|
|
||||||
import { MathJaxWrapper } from "../../MathJaxWrapper";
|
import { MathJaxWrapper } from "../../MathJaxWrapper";
|
||||||
|
import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
p: IPlayer;
|
p: IPlayer;
|
||||||
@ -30,9 +31,13 @@ export function RamButton(props: IProps): React.ReactElement {
|
|||||||
props.rerender();
|
props.rerender();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bnMult = BitNodeMultipliers.HomeComputerRamCost === 1 ? "" : `\\cdot ${BitNodeMultipliers.HomeComputerRamCost}`;
|
||||||
|
console.log(BitNodeMultipliers.HomeComputerRamCost);
|
||||||
return (
|
return (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={<MathJaxWrapper>{`\\(\\large{cost = 3.2 \\cdot 10^3 \\cdot 1.58^{log_2{(ram)}}}\\)`}</MathJaxWrapper>}
|
title={
|
||||||
|
<MathJaxWrapper>{`\\(\\large{cost = ram \\cdot 3.2 \\cdot 10^4 \\cdot 1.58^{log_2{(ram)}}} ${bnMult}\\)`}</MathJaxWrapper>
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<br />
|
<br />
|
||||||
|
Loading…
Reference in New Issue
Block a user