From 00bb38703614e11cd7edd98ead0ca7cc27d52055 Mon Sep 17 00:00:00 2001 From: phyzical Date: Sat, 23 Apr 2022 10:34:41 +0800 Subject: [PATCH] few regressions from hydros changes --- src/Augmentation/Augmentation.tsx | 6 +++--- src/NetscriptFunctions/Singularity.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Augmentation/Augmentation.tsx b/src/Augmentation/Augmentation.tsx index c6ceb0a4c..4cc617586 100644 --- a/src/Augmentation/Augmentation.tsx +++ b/src/Augmentation/Augmentation.tsx @@ -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); diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index 124510921..fdd022f35 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -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";