diff --git a/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx b/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx index b370d9974..00f0acbd7 100644 --- a/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx +++ b/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx @@ -2078,15 +2078,16 @@ export function reapplyAllAugmentations(this: IPlayer, resetMultipliers = true): this.augmentations[i].name = "Hacknet Node NIC Architecture Neural-Upload"; } - const augName = this.augmentations[i].name; + const playerAug = this.augmentations[i]; + const augName = playerAug.name; const aug = Augmentations[augName]; if (aug == null) { console.warn(`Invalid augmentation name in Player.reapplyAllAugmentations(). Aug ${augName} will be skipped`); continue; } aug.owned = true; - if (aug.name == AugmentationNames.NeuroFluxGovernor) { - for (let j = 0; j < aug.level; ++j) { + if (augName == AugmentationNames.NeuroFluxGovernor) { + for (let j = 0; j < playerAug.level; ++j) { applyAugmentation(this.augmentations[i], true); } continue;