SINGULARITY: Adding getUnlockedAchievements function (#2156)

This commit is contained in:
Chris Farfan de los Godos
2025-05-24 23:47:34 +03:00
committed by GitHub
parent eaf4014516
commit 552d13ad6d
5 changed files with 38 additions and 0 deletions
+4
View File
@@ -1186,6 +1186,10 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
helpers.checkSingularityAccess(ctx);
return canGetBonus();
},
getUnlockedAchievements: (ctx) => () => {
helpers.checkSingularityAccess(ctx);
return Object.values(Player.achievements).map((a) => a.ID);
},
};
// Removed functions