From bf518836a58931a78623e080b98eec7c66ec034d Mon Sep 17 00:00:00 2001 From: nickofolas Date: Sat, 9 Apr 2022 09:24:14 -0500 Subject: [PATCH] Minor grafting tweaks around Congruity aug --- src/Augmentation/AugmentationCreator.tsx | 2 +- src/PersonObjects/Grafting/ui/GraftingRoot.tsx | 10 +++++++--- .../Player/PlayerObjectGeneralMethods.tsx | 9 +++++---- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Augmentation/AugmentationCreator.tsx b/src/Augmentation/AugmentationCreator.tsx index 00951f369..46d1d7714 100644 --- a/src/Augmentation/AugmentationCreator.tsx +++ b/src/Augmentation/AugmentationCreator.tsx @@ -1488,7 +1488,7 @@ export const initGeneralAugmentations = (): Augmentation[] => [ // Grafting-exclusive Augmentation new Augmentation({ name: AugmentationNames.CongruityImplant, - repCost: 0, + repCost: Infinity, moneyCost: 50e12, info: "Developed by a pioneer in Grafting research, this implant " + diff --git a/src/PersonObjects/Grafting/ui/GraftingRoot.tsx b/src/PersonObjects/Grafting/ui/GraftingRoot.tsx index 7b61841f0..9821d8a14 100644 --- a/src/PersonObjects/Grafting/ui/GraftingRoot.tsx +++ b/src/PersonObjects/Grafting/ui/GraftingRoot.tsx @@ -130,9 +130,13 @@ export const GraftingRoot = (): React.ReactElement => { <> Cancelling grafting will not save grafting progress, and the money you spend will not{" "} be returned. -
-
- Additionally, grafting an Augmentation will increase the potency of the Entropy virus. + {!player.hasAugmentation(AugmentationNames.CongruityImplant) && ( + <> +
+
+ Additionally, grafting an Augmentation will increase the potency of the Entropy virus. + + )} } /> diff --git a/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx b/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx index b316096ea..191d4e07e 100644 --- a/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx +++ b/src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx @@ -1366,16 +1366,17 @@ export function craftAugmentationWork(this: IPlayer, numCycles: number): boolean export function finishGraftAugmentationWork(this: IPlayer, cancelled: boolean): string { const augName = this.graftAugmentationName; if (cancelled === false) { - dialogBoxCreate( - `You've finished crafting ${augName}.
The augmentation has been grafted to your body, but you feel a bit off.`, - ); - applyAugmentation(Augmentations[augName]); if (!this.hasAugmentation(AugmentationNames.CongruityImplant)) { this.entropy += 1; this.applyEntropy(this.entropy); } + + dialogBoxCreate( + `You've finished crafting ${augName}.
The augmentation has been grafted to your body` + + (this.hasAugmentation(AugmentationNames.CongruityImplant) ? "." : ", but you feel a bit off."), + ); } else { dialogBoxCreate(`You cancelled the crafting of ${augName}.
Your money was not returned to you.`); }