mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-26 16:07:33 +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);
|
||||
}
|
||||
|
||||
const increase = 32 * Math.pow(2, node.cache + multiplier) - node.hashCapacity;
|
||||
const upgradeCacheCost = node.calculateCacheUpgradeCost(multiplier);
|
||||
upgradeCacheButton = (
|
||||
<Tooltip
|
||||
title={
|
||||
<Typography>
|
||||
+<Hashes hashes={32 * Math.pow(2, node.cache)} /> hashes
|
||||
+<Hashes hashes={increase} /> hashes
|
||||
</Typography>
|
||||
}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user