NETSCRIPT: Add ns.pid variable for accessing the current script's PID (#255)

This commit is contained in:
T.J. Eckman
2022-12-13 09:07:15 -05:00
committed by GitHub
parent f943e5d603
commit 52034ccedc
3 changed files with 4 additions and 3 deletions

View File

@@ -1931,6 +1931,7 @@ export function NetscriptFunctions(ws: WorkerScript): ExternalAPI<NSFull> {
obj[key] = new StampedLayer(ws, obj[key]);
}
instance.args = ws.args.slice();
instance.pid = ws.pid;
return instance;
}