From 34c2c70a2b5a894782328d555b29a7c478656a06 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 2 Jun 2021 21:28:07 -0400 Subject: [PATCH] hotfix getPlayer non-singularity --- .../{singularityfunctions => basicfunctions}/getPlayer.rst | 2 -- doc/source/netscript/netscriptfunctions.rst | 1 + doc/source/netscript/netscriptsingularityfunctions.rst | 1 - src/NetscriptFunctions.js | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) rename doc/source/netscript/{singularityfunctions => basicfunctions}/getPlayer.rst (96%) diff --git a/doc/source/netscript/singularityfunctions/getPlayer.rst b/doc/source/netscript/basicfunctions/getPlayer.rst similarity index 96% rename from doc/source/netscript/singularityfunctions/getPlayer.rst rename to doc/source/netscript/basicfunctions/getPlayer.rst index f76aa7c59..3f674fab7 100644 --- a/doc/source/netscript/singularityfunctions/getPlayer.rst +++ b/doc/source/netscript/basicfunctions/getPlayer.rst @@ -5,8 +5,6 @@ getPlayer() Netscript Function :RAM cost: 0.5 GB - If you are not in BitNode-4, then you must have Level 1 of Source-File 4 in order to run this function. - The result of this function can be passed to the :doc:`formulas API<../netscriptformulasapi>`. Returns an object with the Player's stats. The object has the following properties:: diff --git a/doc/source/netscript/netscriptfunctions.rst b/doc/source/netscript/netscriptfunctions.rst index deea623f9..dbdd06dfc 100644 --- a/doc/source/netscript/netscriptfunctions.rst +++ b/doc/source/netscript/netscriptfunctions.rst @@ -46,6 +46,7 @@ This includes information such as function signatures, what they do, and their r getHackingLevel() getHackingMultipliers() getHacknetMultipliers() + getPlayer() getServerMoneyAvailable() getServerMaxMoney() getServerGrowth() diff --git a/doc/source/netscript/netscriptsingularityfunctions.rst b/doc/source/netscript/netscriptsingularityfunctions.rst index 6dcea124a..95e3dbb72 100644 --- a/doc/source/netscript/netscriptsingularityfunctions.rst +++ b/doc/source/netscript/netscriptsingularityfunctions.rst @@ -28,7 +28,6 @@ level 3, then you will be able to access all of the Singularity Functions. connect() manualHack() installBackdoor() - getPlayer() hospitalize() isBusy() stopAction() diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index 4ee51dd4b..1e96762f3 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -2946,7 +2946,6 @@ function NetscriptFunctions(workerScript) { }, getPlayer: function() { updateDynamicRam("getPlayer", getRamCost("getPlayer")); - checkSingularityAccess("getPlayer", 1); const data = { hacking_skill: Player.hacking_skill,