mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 01:32:55 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user