Fixed NeuroFlux Governor Augmentation level calculation bug

This commit is contained in:
danielyxie
2018-10-15 19:08:35 -05:00
parent bd66ecf469
commit 0bcca84ecd
4 changed files with 35 additions and 21 deletions
+2 -2
View File
@@ -1912,10 +1912,10 @@ PlayerObject.prototype.reapplyAllAugmentations = function(resetMultipliers=true)
this.augmentations[i].name = "Hacknet Node NIC Architecture Neural-Upload";
}
var augName = this.augmentations[i].name;
const augName = this.augmentations[i].name;
var aug = Augmentations[augName];
if (aug == null) {
console.log("WARNING: Invalid augmentation name");
console.log(`WARNING: Invalid augmentation name in Player.reapplyAllAugmentations(). Aug ${augName} will be skipped`);
continue;
}
aug.owned = true;