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.

This commit is contained in:
Olivier Gagnon 2021-03-21 18:41:48 -04:00
parent 04bc2bebdd
commit ae4b8228f7
2 changed files with 5 additions and 1 deletions

@ -234,6 +234,9 @@ export let CONSTANTS: IMap<any> = {
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.
`

@ -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