NETSCRIPT: add ns.getResetInfo(#490)

* Move lastAugReset and lastNodeReset back to main API under getResetInfo, also included currentNode.
* The associated properties are deprecated on getPlayer()
This commit is contained in:
Snarling
2023-04-25 05:22:36 -04:00
committed by GitHub
parent 62adaf3006
commit 6024c81113
19 changed files with 183 additions and 143 deletions
-8
View File
@@ -1254,14 +1254,6 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
helpers.checkSingularityAccess(ctx);
return canGetBonus();
},
getLastAugReset: (ctx) => () => {
helpers.checkSingularityAccess(ctx);
return Player.lastAugReset;
},
getLastNodeReset: (ctx) => () => {
helpers.checkSingularityAccess(ctx);
return Player.lastNodeReset;
},
};
Object.assign(singularityAPI, {
getAugmentationCost: removedFunction(