diff --git a/src/Augmentation/AugmentationHelpers.tsx b/src/Augmentation/AugmentationHelpers.tsx index d1ca96fe5..2aba6ea3f 100644 --- a/src/Augmentation/AugmentationHelpers.tsx +++ b/src/Augmentation/AugmentationHelpers.tsx @@ -14,10 +14,10 @@ import { clearObject } from "../utils/helpers/clearObject"; import { FactionNames } from "../Faction/data/FactionNames"; import { - bladeburnerAugmentations, - churchOfTheMachineGodAugmentations, - generalAugmentations, - infiltratorsAugmentations, + initBladeburnerAugmentations, + initChurchOfTheMachineGodAugmentations, + initGeneralAugmentations, + initInfiltratorsAugmentations, initNeuroFluxGovernor, initUnstableCircadianModulator, } from "./data/AugmentationCreator"; @@ -50,10 +50,10 @@ function createAugmentations(): void { [ initNeuroFluxGovernor(), initUnstableCircadianModulator(), - ...generalAugmentations, - ...infiltratorsAugmentations, - ...(factionExists(FactionNames.Bladeburners) ? bladeburnerAugmentations : []), - ...(factionExists(FactionNames.ChurchOfTheMachineGod) ? churchOfTheMachineGodAugmentations : []), + ...initGeneralAugmentations(), + ...initInfiltratorsAugmentations(), + ...(factionExists(FactionNames.Bladeburners) ? initBladeburnerAugmentations() : []), + ...(factionExists(FactionNames.ChurchOfTheMachineGod) ? initChurchOfTheMachineGodAugmentations() : []), ].map(resetAugmentation); } diff --git a/src/Augmentation/data/AugmentationCreator.tsx b/src/Augmentation/data/AugmentationCreator.tsx index 57ede3313..60ac0a9ac 100644 --- a/src/Augmentation/data/AugmentationCreator.tsx +++ b/src/Augmentation/data/AugmentationCreator.tsx @@ -95,7 +95,7 @@ function getRandomBonus(): any { return bonuses[Math.floor(bonuses.length * randomNumber.random())]; } -export const infiltratorsAugmentations = [ +export const initInfiltratorsAugmentations = (): Augmentation[] => [ new Augmentation({ name: AugmentationNames.BionicFingers, repCost: 15e1, @@ -251,7 +251,7 @@ export const infiltratorsAugmentations = [ }), ]; -export const generalAugmentations = [ +export const initGeneralAugmentations = (): Augmentation[] => [ new Augmentation({ name: AugmentationNames.HemoRecirculator, moneyCost: 4.5e7, @@ -1643,7 +1643,7 @@ export const generalAugmentations = [ }), ]; -export const bladeburnerAugmentations = [ +export const initBladeburnerAugmentations = (): Augmentation[] => [ new Augmentation({ name: AugmentationNames.EsperEyewear, repCost: 1.25e3, @@ -1908,7 +1908,7 @@ export const bladeburnerAugmentations = [ }), ]; -export const churchOfTheMachineGodAugmentations = [ +export const initChurchOfTheMachineGodAugmentations = (): Augmentation[] => [ new Augmentation({ name: AugmentationNames.StaneksGift1, repCost: 0,