Minor grafting tweaks around Congruity aug

This commit is contained in:
nickofolas 2022-04-09 09:24:14 -05:00
parent 758b0e1127
commit bf518836a5
3 changed files with 13 additions and 8 deletions

@ -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 " +

@ -130,9 +130,13 @@ export const GraftingRoot = (): React.ReactElement => {
<>
Cancelling grafting will <b>not</b> save grafting progress, and the money you spend will <b>not</b>{" "}
be returned.
<br />
<br />
Additionally, grafting an Augmentation will increase the potency of the Entropy virus.
{!player.hasAugmentation(AugmentationNames.CongruityImplant) && (
<>
<br />
<br />
Additionally, grafting an Augmentation will increase the potency of the Entropy virus.
</>
)}
</>
}
/>

@ -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}.<br>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}.<br>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}.<br>Your money was not returned to you.`);
}