fix bug with workForFaction

This commit is contained in:
Olivier Gagnon
2021-10-16 15:43:28 -04:00
parent 99c75baea0
commit 84a1d27b9a
5 changed files with 8 additions and 3 deletions
+1
View File
@@ -2953,6 +2953,7 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
return true;
},
workForFaction: function (name: any, type: any): any {
console.log(`${name} ${type}`);
updateDynamicRam("workForFaction", getRamCost("workForFaction"));
checkSingularityAccess("workForFaction", 2);
getFaction("workForFaction", name);