Merge pull request #2459 from MartinFournier/fix/max-cache-achievement

Add check for hash capacity > 0 for MAX_CACHE
This commit is contained in:
hydroflame 2022-01-08 12:37:49 -05:00 committed by GitHub
commit 8cb7c9b460
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -274,7 +274,9 @@ const achievements: Achievement[] = [
{ ID: "HACKNET_SERVER_1B", Condition: () => hasHacknetServers(Player) && Player.moneySourceB.hacknet >= 1e9 }, { ID: "HACKNET_SERVER_1B", Condition: () => hasHacknetServers(Player) && Player.moneySourceB.hacknet >= 1e9 },
{ {
ID: "MAX_CACHE", ID: "MAX_CACHE",
Condition: () => hasHacknetServers(Player) && Player.hashManager.hashes === Player.hashManager.capacity, Condition: () => hasHacknetServers(Player) &&
Player.hashManager.hashes === Player.hashManager.capacity &&
Player.hashManager.capacity > 0,
}, },
{ {
ID: "SLEEVE_8", ID: "SLEEVE_8",