Fix analyze Root Access displaying always Yes

This commit is contained in:
Olivier Gagnon 2021-05-05 19:15:56 -04:00
parent a10100bf60
commit a9cee6f907

@ -586,7 +586,8 @@ let Terminal = {
const org = currServ.organizationName const org = currServ.organizationName
post("Organization name: " + (!isHacknet ? org : "Player")); post("Organization name: " + (!isHacknet ? org : "Player"));
const admin = currServ.hasAdminRights; const admin = currServ.hasAdminRights;
post("Root Access: " + (!isHacknet ? "YES" : "NO")); let hasAdminRights = !isHacknet && currServ.hasAdminRights || isHacknet;
post("Root Access: " + (hasAdminRights ? "YES" : "NO"));
const hackingSkill = currServ.requiredHackingSkill const hackingSkill = currServ.requiredHackingSkill
post("Required hacking skill: " + (!isHacknet ? hackingSkill : "N/A")); post("Required hacking skill: " + (!isHacknet ? hackingSkill : "N/A"));
const security = currServ.hackDifficulty; const security = currServ.hackDifficulty;