mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
NETSCRIPT: added ns.singularity.getAugmentationFactions (#706)
This commit is contained in:
@@ -95,6 +95,12 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
|
||||
getOwnedSourceFiles: () => () => {
|
||||
return [...Player.sourceFiles].map(([n, lvl]) => ({ n, lvl }));
|
||||
},
|
||||
getAugmentationFactions: (ctx) => (_augName) => {
|
||||
helpers.checkSingularityAccess(ctx);
|
||||
const augName = getEnumHelper("AugmentationName").nsGetMember(ctx, _augName);
|
||||
const aug = Augmentations[augName];
|
||||
return aug.factions.slice();
|
||||
},
|
||||
getAugmentationsFromFaction: (ctx) => (_facName) => {
|
||||
helpers.checkSingularityAccess(ctx);
|
||||
const facName = getEnumHelper("FactionName").nsGetMember(ctx, _facName);
|
||||
|
||||
Reference in New Issue
Block a user