mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
NETSCRIPT: Add ns.pid variable for accessing the current script's PID (#255)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user