From 9a0062b3769abc0e35d27b1a9c139e5cb48a235d Mon Sep 17 00:00:00 2001 From: Woody Lam Date: Wed, 5 Jan 2022 01:57:39 +0000 Subject: [PATCH] Show correct hash capacity gain on cache level upgrade tooltip --- src/Hacknet/ui/HacknetServerElem.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Hacknet/ui/HacknetServerElem.tsx b/src/Hacknet/ui/HacknetServerElem.tsx index c0e0a2e74..b9a9d8f97 100644 --- a/src/Hacknet/ui/HacknetServerElem.tsx +++ b/src/Hacknet/ui/HacknetServerElem.tsx @@ -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 = ( - + hashes + + hashes } >