changes static arrays to functions to force new creation when called

This commit is contained in:
phyzical
2022-04-04 19:44:25 +08:00
parent acfd164927
commit 4a5edb9f3c
2 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -94,7 +94,7 @@ function getRandomBonus(): any {
return bonuses[Math.floor(bonuses.length * randomNumber.random())];
}
export const generalAugmentations = [
export const initGeneralAugmentations = (): Augmentation[] => [
new Augmentation({
name: AugmentationNames.HemoRecirculator,
moneyCost: 4.5e7,
@@ -1486,7 +1486,7 @@ export const generalAugmentations = [
}),
];
export const bladeburnerAugmentations = [
export const initBladeburnerAugmentations = (): Augmentation[] => [
new Augmentation({
name: AugmentationNames.EsperEyewear,
repCost: 1.25e3,
@@ -1751,7 +1751,7 @@ export const bladeburnerAugmentations = [
}),
];
export const churchOfTheMachineGodAugmentations = [
export const initChurchOfTheMachineGodAugmentations = (): Augmentation[] => [
new Augmentation({
name: AugmentationNames.StaneksGift1,
repCost: 0,