Added new Text Files (downloadable) and their corresponding Terminal commands. Added sprintf and vsprintf.

This commit is contained in:
danielyxie
2017-10-12 15:10:34 -05:00
parent dbb4a93a78
commit 4186326771
9 changed files with 388 additions and 107 deletions
+5
View File
@@ -1,3 +1,6 @@
var sprintf = require('sprintf-js').sprintf,
vsprintf = require('sprintf-js').vsprintf
import {updateActiveScriptsItems} from "./ActiveScriptsUI.js";
import {Augmentations, Augmentation,
augmentationExists, installAugmentations,
@@ -73,6 +76,8 @@ function NetscriptFunctions(workerScript) {
Math : Math,
Date : Date,
hacknetnodes : Player.hacknetNodes,
sprintf : sprintf,
vsprintf: vsprintf,
scan : function(ip=workerScript.serverIp, hostnames=true){
var server = getServer(ip);
if (server == null) {