mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Merge pull request #2863 from SagePtr/can-run-scripts
Show "Can run scripts" to "NO" for zero-RAM servers in "analyze" command
This commit is contained in:
commit
9ddb1c4379
@ -314,7 +314,9 @@ export class Terminal implements ITerminal {
|
|||||||
this.print("Organization name: " + (!isHacknet ? org : "player"));
|
this.print("Organization name: " + (!isHacknet ? org : "player"));
|
||||||
const hasAdminRights = (!isHacknet && currServ.hasAdminRights) || isHacknet;
|
const hasAdminRights = (!isHacknet && currServ.hasAdminRights) || isHacknet;
|
||||||
this.print("Root Access: " + (hasAdminRights ? "YES" : "NO"));
|
this.print("Root Access: " + (hasAdminRights ? "YES" : "NO"));
|
||||||
this.print("Can run scripts on this host: " + (hasAdminRights ? "YES" : "NO"));
|
const canRunScripts = hasAdminRights && currServ.maxRam > 0;
|
||||||
|
this.print("Can run scripts on this host: " + (canRunScripts ? "YES" : "NO"));
|
||||||
|
this.print("RAM: " + numeralWrapper.formatRAM(currServ.maxRam));
|
||||||
if (currServ instanceof Server) {
|
if (currServ instanceof Server) {
|
||||||
this.print("Backdoor: " + (currServ.backdoorInstalled ? "YES" : "NO"));
|
this.print("Backdoor: " + (currServ.backdoorInstalled ? "YES" : "NO"));
|
||||||
const hackingSkill = currServ.requiredHackingSkill;
|
const hackingSkill = currServ.requiredHackingSkill;
|
||||||
|
Loading…
Reference in New Issue
Block a user