mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
few regressions from hydros changes
This commit is contained in:
parent
cdfbda1379
commit
00bb387036
@ -15,7 +15,7 @@ import { CONSTANTS } from "../Constants";
|
||||
import { StaticAugmentations } from "./StaticAugmentations";
|
||||
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
|
||||
import { getBaseAugmentationPriceMultiplier, getGenericAugmentationPriceMultiplier } from "./AugmentationHelpers";
|
||||
import { initInfiltratorsAugmentations } from "./data/AugmentationCreator";
|
||||
import { initSoAAugmentations } from "./data/AugmentationCreator";
|
||||
|
||||
export interface AugmentationCosts {
|
||||
moneyCost: number;
|
||||
@ -616,8 +616,8 @@ export class Augmentation {
|
||||
for (let i = 0; i < player.queuedAugmentations.length; ++i) {
|
||||
moneyCost *= getBaseAugmentationPriceMultiplier();
|
||||
}
|
||||
} else if (augmentationReference.factions.includes(FactionNames.Infiltrators)) {
|
||||
const infiltratorAugmentationNames = initInfiltratorsAugmentations().map((augmentation) => augmentation.name);
|
||||
} else if (augmentationReference.factions.includes(FactionNames.ShadowsOfAnarchy)) {
|
||||
const infiltratorAugmentationNames = initSoAAugmentations().map((augmentation) => augmentation.name);
|
||||
const infiltratorMultiplier =
|
||||
infiltratorAugmentationNames.filter((augmentationName) => player.hasAugmentation(augmentationName)).length + 1;
|
||||
moneyCost = Math.pow(augmentationReference.baseCost * 1000, infiltratorMultiplier);
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { AugmentationCosts } from "./../Augmentation/Augmentation";
|
||||
import { WorkerScript } from "../Netscript/WorkerScript";
|
||||
import { IPlayer } from "../PersonObjects/IPlayer";
|
||||
import { purchaseAugmentation, joinFaction, getFactionAugmentationsFiltered } from "../Faction/FactionHelpers";
|
||||
|
Loading…
Reference in New Issue
Block a user