NETSCRIPT: Added cyclesWorked to certain sleeve.getTask returns, and added bladeburner.getActionSuccesses (#324)

This commit is contained in:
Zelow79
2023-01-15 23:50:54 -05:00
committed by GitHub
parent 6f0b3d07b8
commit 5f923a348c
6 changed files with 27 additions and 2 deletions
+7
View File
@@ -172,6 +172,13 @@ export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
const action = getBladeburnerActionObject(ctx, type, name);
return action.autoLevel;
},
getActionSuccesses: (ctx) => (_type, _name) => {
const type = helpers.string(ctx, "type", _type);
const name = helpers.string(ctx, "name", _name);
checkBladeburnerAccess(ctx);
const action = getBladeburnerActionObject(ctx, type, name);
return action.successes;
},
setActionAutolevel:
(ctx) =>
(_type, _name, _autoLevel = true) => {