mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-13 03:03:54 +01:00
changes static arrays to functions to force new creation when called
This commit is contained in:
parent
acfd164927
commit
4a5edb9f3c
@ -94,7 +94,7 @@ function getRandomBonus(): any {
|
|||||||
return bonuses[Math.floor(bonuses.length * randomNumber.random())];
|
return bonuses[Math.floor(bonuses.length * randomNumber.random())];
|
||||||
}
|
}
|
||||||
|
|
||||||
export const generalAugmentations = [
|
export const initGeneralAugmentations = (): Augmentation[] => [
|
||||||
new Augmentation({
|
new Augmentation({
|
||||||
name: AugmentationNames.HemoRecirculator,
|
name: AugmentationNames.HemoRecirculator,
|
||||||
moneyCost: 4.5e7,
|
moneyCost: 4.5e7,
|
||||||
@ -1486,7 +1486,7 @@ export const generalAugmentations = [
|
|||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
export const bladeburnerAugmentations = [
|
export const initBladeburnerAugmentations = (): Augmentation[] => [
|
||||||
new Augmentation({
|
new Augmentation({
|
||||||
name: AugmentationNames.EsperEyewear,
|
name: AugmentationNames.EsperEyewear,
|
||||||
repCost: 1.25e3,
|
repCost: 1.25e3,
|
||||||
@ -1751,7 +1751,7 @@ export const bladeburnerAugmentations = [
|
|||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
export const churchOfTheMachineGodAugmentations = [
|
export const initChurchOfTheMachineGodAugmentations = (): Augmentation[] => [
|
||||||
new Augmentation({
|
new Augmentation({
|
||||||
name: AugmentationNames.StaneksGift1,
|
name: AugmentationNames.StaneksGift1,
|
||||||
repCost: 0,
|
repCost: 0,
|
||||||
|
@ -15,9 +15,9 @@ import { clearObject } from "../utils/helpers/clearObject";
|
|||||||
|
|
||||||
import { FactionNames } from "../Faction/data/FactionNames";
|
import { FactionNames } from "../Faction/data/FactionNames";
|
||||||
import {
|
import {
|
||||||
bladeburnerAugmentations,
|
initBladeburnerAugmentations,
|
||||||
churchOfTheMachineGodAugmentations,
|
initChurchOfTheMachineGodAugmentations,
|
||||||
generalAugmentations,
|
initGeneralAugmentations,
|
||||||
initNeuroFluxGovernor,
|
initNeuroFluxGovernor,
|
||||||
initUnstableCircadianModulator,
|
initUnstableCircadianModulator,
|
||||||
} from "./AugmentationCreator";
|
} from "./AugmentationCreator";
|
||||||
@ -49,9 +49,9 @@ function createAugmentations(): void {
|
|||||||
[
|
[
|
||||||
initNeuroFluxGovernor(),
|
initNeuroFluxGovernor(),
|
||||||
initUnstableCircadianModulator(),
|
initUnstableCircadianModulator(),
|
||||||
...generalAugmentations,
|
...initGeneralAugmentations(),
|
||||||
...(factionExists(FactionNames.Bladeburners) ? bladeburnerAugmentations : []),
|
...(factionExists(FactionNames.Bladeburners) ? initBladeburnerAugmentations() : []),
|
||||||
...(factionExists(FactionNames.ChurchOfTheMachineGod) ? churchOfTheMachineGodAugmentations : []),
|
...(factionExists(FactionNames.ChurchOfTheMachineGod) ? initChurchOfTheMachineGodAugmentations() : []),
|
||||||
].map(resetAugmentation);
|
].map(resetAugmentation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user