SINGULARITY: Added aug and node identifiers (timestamps of last resets) (#472)

This commit is contained in:
G4mingJon4s
2023-04-12 19:13:42 +02:00
committed by GitHub
parent f761eed377
commit d01ba91654
14 changed files with 86 additions and 32 deletions

View File

@@ -1253,6 +1253,14 @@ 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(