From ae4b8228f7fa237c70d02d0c0e2fff486cbf4421 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sun, 21 Mar 2021 18:41:48 -0400 Subject: [PATCH] fixed a bug where completing a non-repeatable bitnode thats already max level would display level 4 on the bitverse and color it like level 1. --- src/Constants.ts | 3 +++ src/RedPill.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Constants.ts b/src/Constants.ts index ef96e0c41..afb314c7b 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -234,6 +234,9 @@ export let CONSTANTS: IMap = { Factions * Augmentations offered by a Faction but already bought are in a separate list at the bottom of the page. + Bug fixed + * Fixed a bug where completing a maxed non-repeatable BitNode would make its color on the BitVerse like level 1. + Misc. * Minor spacing in stats tables. ` diff --git a/src/RedPill.js b/src/RedPill.js index a1eb229a3..05892b359 100644 --- a/src/RedPill.js +++ b/src/RedPill.js @@ -151,7 +151,8 @@ function loadBitVerse(destroyedBitNodeNum, flume=false) { // Update NextSourceFileFlags nextSourceFileFlags = SourceFileFlags.slice(); if (!flume) { - ++nextSourceFileFlags[destroyedBitNodeNum]; + if (nextSourceFileFlags[destroyedBitNodeNum] < 3 && destroyedBitNodeNum !== 12) + ++nextSourceFileFlags[destroyedBitNodeNum]; } // Create the Bit Verse