Tweaks and improvements

This commit is contained in:
nickofolas 2022-04-07 11:25:12 -05:00
parent 314e37430d
commit 78463ed1c0
4 changed files with 4 additions and 9 deletions

@ -1489,7 +1489,7 @@ export const initGeneralAugmentations = (): Augmentation[] => [
new Augmentation({
name: AugmentationNames.CongruityImplant,
repCost: 0,
moneyCost: 150e12,
moneyCost: 50e12,
info:
"Developed by a pioneer in Grafting research, this implant " +
"generates pulses of stability which seem to have a nullifying " +

@ -142,8 +142,9 @@ function applyAugmentation(aug: IPlayerOwnedAugmentation, reapply = false): void
}
// Special logic for Congruity Implant
if (aug.name === AugmentationNames.CongruityImplant) {
if (aug.name === AugmentationNames.CongruityImplant && !reapply) {
Player.entropy = 0;
Player.applyEntropy(Player.entropy)
}
// Push onto Player's Augmentation list

@ -1,7 +1,6 @@
import { sum } from "lodash";
import { Augmentation } from "../../Augmentation/Augmentation";
import { AugmentationNames } from "../../Augmentation/data/AugmentationNames";
import { CONSTANTS } from "../../Constants";
export interface IConstructorParams {
@ -19,11 +18,6 @@ export class GraftableAugmentation {
}
get cost(): number {
// Sell the Grafting-exclusive Aug at its starting price only
if (this.augmentation.name === AugmentationNames.CongruityImplant) {
return this.augmentation.startingCost;
}
return this.augmentation.startingCost * CONSTANTS.AugmentationGraftingCostMult;
}

@ -1374,8 +1374,8 @@ export function finishGraftAugmentationWork(this: IPlayer, cancelled: boolean):
if (!this.hasAugmentation(AugmentationNames.CongruityImplant)) {
this.entropy += 1;
this.applyEntropy(this.entropy);
}
this.applyEntropy(this.entropy);
} else {
dialogBoxCreate(`You cancelled the crafting of ${augName}.<br>Your money was not returned to you.`);
}