Fixed bug with recent Neuroflux changes that cause it to break at level 0

This commit is contained in:
danielyxie 2018-10-16 14:50:31 -05:00
parent ae00898fd8
commit 0c9f9689f2
2 changed files with 1 additions and 5 deletions

@ -1,8 +1,7 @@
import {BitNodeMultipliers} from "./BitNodeMultipliers";
import {CONSTANTS} from "./Constants";
import {Engine} from "./engine";
import {Factions, getNextNeurofluxLevel,
factionExists} from "./Faction";
import {Factions, factionExists} from "./Faction";
import {hasBladeburnerSF} from "./NetscriptFunctions";
import {addWorkerScript} from "./NetscriptWorker";
import {Player} from "./Player";

@ -742,9 +742,6 @@ function getNextNeurofluxLevel() {
}
}
// Player doesn't have Neuroflux yet, so next level is 1
if (currLevel === 0) { return 1; }
// Account for purchased but uninstalled Augmentations
for (var i = 0; i < Player.queuedAugmentations.length; ++i) {
if (Player.queuedAugmentations[i].name == AugmentationNames.NeuroFluxGovernor) {