mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-04 20:37:36 +01:00
fix aug cost not properly updating
This commit is contained in:
parent
8812451a32
commit
ec87752e79
@ -91,13 +91,15 @@ function updateNeuroFluxGovernorCosts(neuroFluxGovernorAugmentation: Augmentatio
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function updateAugmentationCosts(): void {
|
export function updateAugmentationCosts(): void {
|
||||||
|
console.log(Player.queuedAugmentations);
|
||||||
for (const name of Object.keys(Augmentations)) {
|
for (const name of Object.keys(Augmentations)) {
|
||||||
if (Augmentations.hasOwnProperty(name)) {
|
if (Augmentations.hasOwnProperty(name)) {
|
||||||
const augmentationToUpdate = Augmentations[name];
|
const augmentationToUpdate = Augmentations[name];
|
||||||
if (augmentationToUpdate.name === AugmentationNames.NeuroFluxGovernor) {
|
if (augmentationToUpdate.name === AugmentationNames.NeuroFluxGovernor) {
|
||||||
updateNeuroFluxGovernorCosts(augmentationToUpdate);
|
updateNeuroFluxGovernorCosts(augmentationToUpdate);
|
||||||
} else {
|
} else {
|
||||||
augmentationToUpdate.baseCost *= getGenericAugmentationPriceMultiplier();
|
console.log(augmentationToUpdate.baseCost);
|
||||||
|
augmentationToUpdate.baseCost = augmentationToUpdate.startingCost * getGenericAugmentationPriceMultiplier();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { FactionNames } from './Faction/data/FactionNames';
|
import { FactionNames } from "./Faction/data/FactionNames";
|
||||||
import { CityName } from './Locations/data/CityNames';
|
import { CityName } from "./Locations/data/CityNames";
|
||||||
import { Augmentations } from "./Augmentation/Augmentations";
|
import { Augmentations } from "./Augmentation/Augmentations";
|
||||||
import { augmentationExists, initAugmentations } from "./Augmentation/AugmentationHelpers";
|
import { augmentationExists, initAugmentations } from "./Augmentation/AugmentationHelpers";
|
||||||
import { AugmentationNames } from "./Augmentation/data/AugmentationNames";
|
import { AugmentationNames } from "./Augmentation/data/AugmentationNames";
|
||||||
|
Loading…
Reference in New Issue
Block a user