mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +01:00
Add check for hash capacity > 0 for MAX_CACHE
Achievement would trigger as soon as you entered the node as the capacity was 0. It looks like this fix was lost in a merge resolution (see PR #2459)
This commit is contained in:
parent
8b69fd7faa
commit
da7f161e45
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user