mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 06:32:26 +01:00
Merge pull request #2345 from woody-lam-cwl/cache-level-tooltip
Fix #2278
This commit is contained in:
commit
78de076e9c
@ -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