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 // Grafting-exclusive Augmentation
new Augmentation({ new Augmentation({
name: AugmentationNames.CongruityImplant, name: AugmentationNames.CongruityImplant,
repCost: 0, repCost: Infinity,
moneyCost: 50e12, moneyCost: 50e12,
info: info:
"Developed by a pioneer in Grafting research, this implant " + "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>{" "} Cancelling grafting will <b>not</b> save grafting progress, and the money you spend will <b>not</b>{" "}
be returned. be returned.
<br /> {!player.hasAugmentation(AugmentationNames.CongruityImplant) && (
<br /> <>
Additionally, grafting an Augmentation will increase the potency of the Entropy virus. <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 { export function finishGraftAugmentationWork(this: IPlayer, cancelled: boolean): string {
const augName = this.graftAugmentationName; const augName = this.graftAugmentationName;
if (cancelled === false) { 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]); applyAugmentation(Augmentations[augName]);
if (!this.hasAugmentation(AugmentationNames.CongruityImplant)) { if (!this.hasAugmentation(AugmentationNames.CongruityImplant)) {
this.entropy += 1; this.entropy += 1;
this.applyEntropy(this.entropy); 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 { } else {
dialogBoxCreate(`You cancelled the crafting of ${augName}.<br>Your money was not returned to you.`); dialogBoxCreate(`You cancelled the crafting of ${augName}.<br>Your money was not returned to you.`);
} }