fix for augmentation pricing

This commit is contained in:
phyzical
2022-03-29 23:42:57 +08:00
parent fd64746ff8
commit 79238ea5e9
3 changed files with 9 additions and 14 deletions
+1 -4
View File
@@ -95,7 +95,7 @@ function getRandomBonus(): any {
return bonuses[Math.floor(bonuses.length * randomNumber.random())];
}
export const infiltratorsOtherAugmentations = [
export const infiltratorsAugmentations = [
new Augmentation({
name: AugmentationNames.BionicFingers,
repCost: 15e1,
@@ -159,9 +159,6 @@ export const infiltratorsOtherAugmentations = [
"blunt damage when used as an alloy with almost any other metal you can think of.",
factions: [FactionNames.Infiltrators],
}),
];
export const infiltratorsMiniGameAugmentations = [
new Augmentation({
name: AugmentationNames.PythiasBrainStem,
repCost: 1e2,
+6 -8
View File
@@ -17,8 +17,7 @@ import {
churchOfTheMachineGodAugmentations,
generalAugmentations,
getNextNeuroFluxLevel,
infiltratorsMiniGameAugmentations,
infiltratorsOtherAugmentations,
infiltratorsAugmentations,
initNeuroFluxGovernor,
initUnstableCircadianModulator,
} from "./AugmentationCreator";
@@ -34,8 +33,7 @@ function createAugmentations(): void {
initNeuroFluxGovernor(),
initUnstableCircadianModulator(),
...generalAugmentations,
...infiltratorsMiniGameAugmentations,
...infiltratorsOtherAugmentations,
...infiltratorsAugmentations,
...(factionExists(FactionNames.Bladeburners) ? bladeburnerAugmentations : []),
...(factionExists(FactionNames.ChurchOfTheMachineGod) ? churchOfTheMachineGodAugmentations : []),
].map(resetAugmentation);
@@ -78,10 +76,10 @@ function updateNeuroFluxGovernorCosts(neuroFluxGovernorAugmentation: Augmentatio
function updateInfiltratorCosts(infiltratorAugmentation: Augmentation): void {
const infiltratorMultiplier =
infiltratorsMiniGameAugmentations.filter((augmentation) => Player.hasAugmentation(augmentation.name)).length + 1;
infiltratorAugmentation.baseCost = Math.pow(infiltratorAugmentation.baseCost * 1000, infiltratorMultiplier);
if (infiltratorsMiniGameAugmentations.find((augmentation) => augmentation.name === infiltratorAugmentation.name)) {
infiltratorAugmentation.baseRepRequirement *= infiltratorMultiplier;
infiltratorsAugmentations.filter((augmentation) => Player.hasAugmentation(augmentation.name)).length + 1;
infiltratorAugmentation.baseCost = Math.pow(infiltratorAugmentation.startingCost * 1000, infiltratorMultiplier);
if (infiltratorsAugmentations.find((augmentation) => augmentation.name === infiltratorAugmentation.name)) {
infiltratorAugmentation.baseRepRequirement = infiltratorAugmentation.startingRepRequirement * infiltratorMultiplier;
}
}