Move getOwnedSourceFiles to NetscriptFunctions

This commit is contained in:
theit8514
2021-12-02 12:17:33 -05:00
parent 9b009b980c
commit cb1aa452a1
4 changed files with 22 additions and 28 deletions
-12
View File
@@ -105,18 +105,6 @@ export function NetscriptSingularity(
}
return res;
},
getOwnedSourceFiles: function (): any {
helper.updateDynamicRam("getOwnedSourceFiles", getRamCost("getOwnedSourceFiles"));
helper.checkSingularityAccess("getOwnedSourceFiles", 3);
const res = [];
for (let i = 0; i < player.sourceFiles.length; ++i) {
res.push({
n: player.sourceFiles[i].n,
lvl: player.sourceFiles[i].lvl,
});
}
return res;
},
getAugmentationsFromFaction: function (facname: any): any {
helper.updateDynamicRam("getAugmentationsFromFaction", getRamCost("getAugmentationsFromFaction"));
helper.checkSingularityAccess("getAugmentationsFromFaction", 3);