getBitnodeMultipliers is available inside BN5

This commit is contained in:
Olivier Gagnon 2021-05-01 22:56:28 -04:00
parent 81fdff9068
commit 89cdecb05f

@ -1619,7 +1619,7 @@ function NetscriptFunctions(workerScript) {
},
getBitNodeMultipliers: function() {
updateDynamicRam("getBitNodeMultipliers", getRamCost("getBitNodeMultipliers"));
if (SourceFileFlags[5] <= 0) {
if (Player.bitNodeN !== 5 && SourceFileFlags[5] <= 0) {
throw makeRuntimeErrorMsg("getBitNodeMultipliers", "Requires Source-File 5 to run.");
}
let copy = Object.assign({}, BitNodeMultipliers);