Added fileExists() and getServerRequiredHackingLevel() Netscript commands. Updated Netscript documentation

This commit is contained in:
Daniel Xie
2017-06-05 10:31:46 -05:00
parent d73a11f678
commit 8fa1eab3c6
4 changed files with 84 additions and 29 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ Script.prototype.reset = function() {
//Updates how much RAM the script uses when it is running.
Script.prototype.updateRamUsage = function() {
var baseRam = 1.5; //Each script requires 1GB to run regardless
var baseRam = 1.5;
var codeCopy = this.code.repeat(1);
codeCopy = codeCopy.replace(/\s/g,''); //Remove all whitespace