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
@@ -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.`);
}