From a9cee6f907d05eb931f6265aa11ffd2f4a2df7ec Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 5 May 2021 19:15:56 -0400 Subject: [PATCH] Fix analyze Root Access displaying always Yes --- src/Terminal.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Terminal.jsx b/src/Terminal.jsx index 27fb2acc9..1d52f8482 100644 --- a/src/Terminal.jsx +++ b/src/Terminal.jsx @@ -586,7 +586,8 @@ let Terminal = { const org = currServ.organizationName post("Organization name: " + (!isHacknet ? org : "Player")); 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 post("Required hacking skill: " + (!isHacknet ? hackingSkill : "N/A")); const security = currServ.hackDifficulty;