mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 08:42:53 +02:00
NETSCRIPTSLEEVE: Add cyclesWorked to ns.sleeve.getTask return (#409)
This commit is contained in:
@@ -150,7 +150,7 @@ export function NetscriptSleeve(): InternalAPI<Sleeve> {
|
||||
|
||||
const sl = Player.sleeves[sleeveNumber];
|
||||
if (sl.currentWork === null) return null;
|
||||
return sl.currentWork.APICopy();
|
||||
return sl.currentWork.APICopy(sl);
|
||||
},
|
||||
getSleeve: (ctx) => (_sleeveNumber) => {
|
||||
const sleeveNumber = helpers.number(ctx, "sleeveNumber", _sleeveNumber);
|
||||
|
||||
Reference in New Issue
Block a user