few regressions from hydros changes

This commit is contained in:
phyzical 2022-04-23 10:34:41 +08:00
parent cdfbda1379
commit 00bb387036
2 changed files with 3 additions and 4 deletions

@ -15,7 +15,7 @@ import { CONSTANTS } from "../Constants";
import { StaticAugmentations } from "./StaticAugmentations"; import { StaticAugmentations } from "./StaticAugmentations";
import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers"; import { BitNodeMultipliers } from "../BitNode/BitNodeMultipliers";
import { getBaseAugmentationPriceMultiplier, getGenericAugmentationPriceMultiplier } from "./AugmentationHelpers"; import { getBaseAugmentationPriceMultiplier, getGenericAugmentationPriceMultiplier } from "./AugmentationHelpers";
import { initInfiltratorsAugmentations } from "./data/AugmentationCreator"; import { initSoAAugmentations } from "./data/AugmentationCreator";
export interface AugmentationCosts { export interface AugmentationCosts {
moneyCost: number; moneyCost: number;
@ -616,8 +616,8 @@ export class Augmentation {
for (let i = 0; i < player.queuedAugmentations.length; ++i) { for (let i = 0; i < player.queuedAugmentations.length; ++i) {
moneyCost *= getBaseAugmentationPriceMultiplier(); moneyCost *= getBaseAugmentationPriceMultiplier();
} }
} else if (augmentationReference.factions.includes(FactionNames.Infiltrators)) { } else if (augmentationReference.factions.includes(FactionNames.ShadowsOfAnarchy)) {
const infiltratorAugmentationNames = initInfiltratorsAugmentations().map((augmentation) => augmentation.name); const infiltratorAugmentationNames = initSoAAugmentations().map((augmentation) => augmentation.name);
const infiltratorMultiplier = const infiltratorMultiplier =
infiltratorAugmentationNames.filter((augmentationName) => player.hasAugmentation(augmentationName)).length + 1; infiltratorAugmentationNames.filter((augmentationName) => player.hasAugmentation(augmentationName)).length + 1;
moneyCost = Math.pow(augmentationReference.baseCost * 1000, infiltratorMultiplier); moneyCost = Math.pow(augmentationReference.baseCost * 1000, infiltratorMultiplier);

@ -1,4 +1,3 @@
import { AugmentationCosts } from "./../Augmentation/Augmentation";
import { WorkerScript } from "../Netscript/WorkerScript"; import { WorkerScript } from "../Netscript/WorkerScript";
import { IPlayer } from "../PersonObjects/IPlayer"; import { IPlayer } from "../PersonObjects/IPlayer";
import { purchaseAugmentation, joinFaction, getFactionAugmentationsFiltered } from "../Faction/FactionHelpers"; import { purchaseAugmentation, joinFaction, getFactionAugmentationsFiltered } from "../Faction/FactionHelpers";