address comments.

This commit is contained in:
Olivier Gagnon
2021-05-03 11:58:11 -04:00
parent d422028737
commit c421c57e56
2 changed files with 27 additions and 29 deletions
+1 -1
View File
@@ -1619,7 +1619,7 @@ function NetscriptFunctions(workerScript) {
},
getBitNodeMultipliers: function() {
updateDynamicRam("getBitNodeMultipliers", getRamCost("getBitNodeMultipliers"));
if (Player.bitNodeN !== 5 && SourceFileFlags[5] <= 0) {
if (SourceFileFlags[5] <= 0 && Player.bitNodeN !== 5) {
throw makeRuntimeErrorMsg("getBitNodeMultipliers", "Requires Source-File 5 to run.");
}
let copy = Object.assign({}, BitNodeMultipliers);