Merge pull request #2345 from woody-lam-cwl/cache-level-tooltip

Fix #2278
This commit is contained in:
hydroflame 2022-01-05 10:17:05 -05:00 committed by GitHub
commit 78de076e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>
}
>