Merge pull request #2667 from MartinFournier/fix/hash-cache-achievement

Add check for hash capacity > 0 for MAX_CACHE
This commit is contained in:
hydroflame 2022-01-17 15:52:42 -05:00 committed by GitHub
commit 4e5f05d269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -553,7 +553,9 @@ export const achievements: IMap<Achievement> = {
...achievementData["MAX_CACHE"],
Icon: "HASHNETCAP",
Visible: () => hasAccessToSF(Player, 9),
Condition: () => hasHacknetServers(Player) && Player.hashManager.hashes === Player.hashManager.capacity,
Condition: () => hasHacknetServers(Player) &&
Player.hashManager.hashes === Player.hashManager.capacity &&
Player.hashManager.capacity > 0,
},
SLEEVE_8: {
...achievementData["SLEEVE_8"],