mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22: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);
|
||||
}
|
||||
|
||||
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