Set up the skeleton of an ns.closeTail function

This commit is contained in:
Undeemiss
2022-05-16 19:15:38 -05:00
parent 0121fee6e4
commit 5526355a43
3 changed files with 24 additions and 0 deletions
+4
View File
@@ -988,6 +988,10 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
LogBoxEvents.emit(runningScriptObj);
},
closeTail: function (fn: any, hostname: any = workerScript.hostname, ...scriptArgs: any[]): void {
updateDynamicRam("closeTail", getRamCost(Player, "closeTail"));
// TODO
},
nuke: function (_hostname: unknown): boolean {
updateDynamicRam("nuke", getRamCost(Player, "nuke"));
const hostname = helper.string("tail", "hostname", _hostname);