mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 01:47:33 +01:00
Merge pull request #3372 from nickofolas/feature/unique-aug
[Feature] Add special Augmentation for Grafting
This commit is contained in:
commit
4aa012f9c0
@ -1484,6 +1484,19 @@ export const initGeneralAugmentations = (): Augmentation[] => [
|
|||||||
),
|
),
|
||||||
factions: [FactionNames.TianDiHui],
|
factions: [FactionNames.TianDiHui],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// Grafting-exclusive Augmentation
|
||||||
|
new Augmentation({
|
||||||
|
name: AugmentationNames.CongruityImplant,
|
||||||
|
repCost: 0,
|
||||||
|
moneyCost: 50e12,
|
||||||
|
info:
|
||||||
|
"Developed by a pioneer in Grafting research, this implant " +
|
||||||
|
"generates pulses of stability which seem to have a nullifying " +
|
||||||
|
"effect versus the Entropy virus.",
|
||||||
|
stats: <>This Augmentation removes the Entropy virus, and prevents it from affecting you again.</>,
|
||||||
|
factions: [],
|
||||||
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
export const initBladeburnerAugmentations = (): Augmentation[] => [
|
export const initBladeburnerAugmentations = (): Augmentation[] => [
|
||||||
|
@ -141,6 +141,12 @@ function applyAugmentation(aug: IPlayerOwnedAugmentation, reapply = false): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Special logic for Congruity Implant
|
||||||
|
if (aug.name === AugmentationNames.CongruityImplant && !reapply) {
|
||||||
|
Player.entropy = 0;
|
||||||
|
Player.applyEntropy(Player.entropy);
|
||||||
|
}
|
||||||
|
|
||||||
// Push onto Player's Augmentation list
|
// Push onto Player's Augmentation list
|
||||||
if (!reapply) {
|
if (!reapply) {
|
||||||
const ownedAug = new PlayerOwnedAugmentation(aug.name);
|
const ownedAug = new PlayerOwnedAugmentation(aug.name);
|
||||||
|
@ -91,6 +91,7 @@ export enum AugmentationNames {
|
|||||||
BionicArms = "Bionic Arms",
|
BionicArms = "Bionic Arms",
|
||||||
SNA = "Social Negotiation Assistant (S.N.A)",
|
SNA = "Social Negotiation Assistant (S.N.A)",
|
||||||
HydroflameLeftArm = "Hydroflame Left Arm",
|
HydroflameLeftArm = "Hydroflame Left Arm",
|
||||||
|
CongruityImplant = "nickofolas Congruity Implant",
|
||||||
EsperEyewear = "EsperTech Bladeburner Eyewear",
|
EsperEyewear = "EsperTech Bladeburner Eyewear",
|
||||||
EMS4Recombination = "EMS-4 Recombination",
|
EMS4Recombination = "EMS-4 Recombination",
|
||||||
OrionShoulder = "ORION-MKIV Shoulder",
|
OrionShoulder = "ORION-MKIV Shoulder",
|
||||||
|
@ -1371,8 +1371,11 @@ export function finishGraftAugmentationWork(this: IPlayer, cancelled: boolean):
|
|||||||
);
|
);
|
||||||
|
|
||||||
applyAugmentation(Augmentations[augName]);
|
applyAugmentation(Augmentations[augName]);
|
||||||
this.entropy += 1;
|
|
||||||
this.applyEntropy(this.entropy);
|
if (!this.hasAugmentation(AugmentationNames.CongruityImplant)) {
|
||||||
|
this.entropy += 1;
|
||||||
|
this.applyEntropy(this.entropy);
|
||||||
|
}
|
||||||
} 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.`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user