mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
BUGFIX: fix NFG buying current Level instead of next Level (#718)
This commit is contained in:
parent
647b78c9f7
commit
5c7b30ef15
@ -227,4 +227,8 @@ export class Augmentation {
|
||||
const queuedNFGLevel = Player.queuedAugmentations.filter((aug) => aug.name === this.name).length;
|
||||
return ownedNFGLevel + queuedNFGLevel;
|
||||
}
|
||||
/** Get the next level of an augmentation to buy. Currently only relevant for NFG. */
|
||||
getNextLevel(): number {
|
||||
return this.getLevel() + 1;
|
||||
}
|
||||
}
|
@ -84,7 +84,7 @@ export function purchaseAugmentation(aug: Augmentation, fac: Faction, sing = fal
|
||||
} else if (augCosts.moneyCost === 0 || Player.money >= augCosts.moneyCost) {
|
||||
const queuedAugmentation = new PlayerOwnedAugmentation(aug.name);
|
||||
if (aug.name == AugmentationName.NeuroFluxGovernor) {
|
||||
queuedAugmentation.level = aug.getLevel();
|
||||
queuedAugmentation.level = aug.getNextLevel();
|
||||
}
|
||||
Player.queuedAugmentations.push(queuedAugmentation);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user