mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Merge pull request #2667 from MartinFournier/fix/hash-cache-achievement
Add check for hash capacity > 0 for MAX_CACHE
This commit is contained in:
commit
4e5f05d269
@ -553,7 +553,9 @@ export const achievements: IMap<Achievement> = {
|
|||||||
...achievementData["MAX_CACHE"],
|
...achievementData["MAX_CACHE"],
|
||||||
Icon: "HASHNETCAP",
|
Icon: "HASHNETCAP",
|
||||||
Visible: () => hasAccessToSF(Player, 9),
|
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: {
|
SLEEVE_8: {
|
||||||
...achievementData["SLEEVE_8"],
|
...achievementData["SLEEVE_8"],
|
||||||
|
Loading…
Reference in New Issue
Block a user