mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
SINGULARITY: Adding getUnlockedAchievements function (#2156)
This commit is contained in:
committed by
GitHub
parent
eaf4014516
commit
552d13ad6d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user