mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
Tweaks and improvements
This commit is contained in:
parent
314e37430d
commit
78463ed1c0
@ -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.`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user