mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 19:32:31 +01:00
Fix missing logic for applying NFG
This commit is contained in:
@ -85,9 +85,17 @@ function applyAugmentation(aug: IPlayerOwnedAugmentation, reapply = false): void
|
||||
Player.applyEntropy(Player.entropy);
|
||||
}
|
||||
|
||||
// Special logic for NeuroFlux Governor
|
||||
const ownedNfg = Player.augmentations.find((pAug) => pAug.name === AugmentationNames.NeuroFluxGovernor);
|
||||
if (aug.name === AugmentationNames.NeuroFluxGovernor && !reapply && ownedNfg) {
|
||||
ownedNfg.level = aug.level;
|
||||
return;
|
||||
}
|
||||
|
||||
// Push onto Player's Augmentation list
|
||||
if (!reapply) {
|
||||
const ownedAug = new PlayerOwnedAugmentation(aug.name);
|
||||
|
||||
Player.augmentations.push(ownedAug);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user