mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-02 11:27:38 +01:00
change back general augment price adjustment
This commit is contained in:
parent
2edfb6e35d
commit
4232741613
@ -103,12 +103,6 @@ function updateInfiltratorCosts(infiltratorAugmentation: Augmentation): void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateGeneralAugmentationPrice(augmentation: Augmentation): void {
|
|
||||||
for (let i = 0; i < Player.queuedAugmentations.length; ++i) {
|
|
||||||
augmentation.baseCost = augmentation.startingCost * getGenericAugmentationPriceMultiplier();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export function updateAugmentationCosts(): void {
|
export function updateAugmentationCosts(): void {
|
||||||
for (const name of Object.keys(Augmentations)) {
|
for (const name of Object.keys(Augmentations)) {
|
||||||
if (Augmentations.hasOwnProperty(name)) {
|
if (Augmentations.hasOwnProperty(name)) {
|
||||||
@ -118,7 +112,7 @@ export function updateAugmentationCosts(): void {
|
|||||||
} else if (augmentationToUpdate.factions.includes(FactionNames.Infiltrators)) {
|
} else if (augmentationToUpdate.factions.includes(FactionNames.Infiltrators)) {
|
||||||
updateInfiltratorCosts(augmentationToUpdate);
|
updateInfiltratorCosts(augmentationToUpdate);
|
||||||
} else {
|
} else {
|
||||||
updateGeneralAugmentationPrice(augmentationToUpdate);
|
augmentationToUpdate.baseCost = augmentationToUpdate.startingCost * getGenericAugmentationPriceMultiplier();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user