mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
fix for augmentation pricing
This commit is contained in:
parent
fd64746ff8
commit
79238ea5e9
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ import { IPlayerOwnedAugmentation, PlayerOwnedAugmentation } from "../../Augment
|
||||
import { AugmentationNames } from "../../Augmentation/data/AugmentationNames";
|
||||
|
||||
import { getRandomInt } from "../../utils/helpers/getRandomInt";
|
||||
import { infiltratorsMiniGameAugmentations } from "../../Augmentation/AugmentationCreator";
|
||||
import { infiltratorsAugmentations } from "../../Augmentation/AugmentationCreator";
|
||||
|
||||
// Executes the actual re-sleeve when one is purchased
|
||||
export function purchaseResleeve(r: Resleeve, p: IPlayer): boolean {
|
||||
@ -112,7 +112,7 @@ export function generateResleeves(): Resleeve[] {
|
||||
AugmentationNames.StaneksGift1,
|
||||
AugmentationNames.StaneksGift2,
|
||||
AugmentationNames.StaneksGift3,
|
||||
...infiltratorsMiniGameAugmentations,
|
||||
...infiltratorsAugmentations,
|
||||
].map((augmentation) => augmentation as string);
|
||||
if (forbidden.includes(randKey)) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user