mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Show correct hash capacity gain on cache level upgrade tooltip
This commit is contained in:
parent
f9fd7a48f8
commit
9a0062b376
@ -188,12 +188,13 @@ export function HacknetServerElem(props: IProps): React.ReactElement {
|
|||||||
multiplier = Math.min(levelsToMax, purchaseMult as number);
|
multiplier = Math.min(levelsToMax, purchaseMult as number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const increase = 32 * Math.pow(2, node.cache + multiplier) - node.hashCapacity;
|
||||||
const upgradeCacheCost = node.calculateCacheUpgradeCost(multiplier);
|
const upgradeCacheCost = node.calculateCacheUpgradeCost(multiplier);
|
||||||
upgradeCacheButton = (
|
upgradeCacheButton = (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
<Typography>
|
<Typography>
|
||||||
+<Hashes hashes={32 * Math.pow(2, node.cache)} /> hashes
|
+<Hashes hashes={increase} /> hashes
|
||||||
</Typography>
|
</Typography>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user