From 89cdecb05f08f83824c0cdb03d2360fb21cc176e Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sat, 1 May 2021 22:56:28 -0400 Subject: [PATCH] getBitnodeMultipliers is available inside BN5 --- src/NetscriptFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index 6c676b8d2..5816967eb 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -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);