mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
More hasAugmentation fixes
This commit is contained in:
parent
75c738cdb0
commit
4c5adc8dfb
@ -142,7 +142,7 @@ export function NetscriptStanek(): InternalAPI<IStanek> {
|
|||||||
//Return true iff the player is in CotMG and has the first Stanek aug installed
|
//Return true iff the player is in CotMG and has the first Stanek aug installed
|
||||||
return (
|
return (
|
||||||
Factions[FactionNames.ChurchOfTheMachineGod].isMember &&
|
Factions[FactionNames.ChurchOfTheMachineGod].isMember &&
|
||||||
player.hasAugmentation(AugmentationNames.StaneksGift1)
|
player.hasAugmentation(AugmentationNames.StaneksGift1, true)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -55,15 +55,15 @@ export function prestigeAugmentation(): void {
|
|||||||
AddToAllServers(homeComp);
|
AddToAllServers(homeComp);
|
||||||
prestigeHomeComputer(Player, homeComp);
|
prestigeHomeComputer(Player, homeComp);
|
||||||
|
|
||||||
if (augmentationExists(AugmentationNames.Neurolink) && Player.hasAugmentation(AugmentationNames.Neurolink)) {
|
if (augmentationExists(AugmentationNames.Neurolink) && Player.hasAugmentation(AugmentationNames.Neurolink, true)) {
|
||||||
homeComp.programs.push(Programs.FTPCrackProgram.name);
|
homeComp.programs.push(Programs.FTPCrackProgram.name);
|
||||||
homeComp.programs.push(Programs.RelaySMTPProgram.name);
|
homeComp.programs.push(Programs.RelaySMTPProgram.name);
|
||||||
}
|
}
|
||||||
if (augmentationExists(AugmentationNames.CashRoot) && Player.hasAugmentation(AugmentationNames.CashRoot)) {
|
if (augmentationExists(AugmentationNames.CashRoot) && Player.hasAugmentation(AugmentationNames.CashRoot, true)) {
|
||||||
Player.setMoney(1e6);
|
Player.setMoney(1e6);
|
||||||
homeComp.programs.push(Programs.BruteSSHProgram.name);
|
homeComp.programs.push(Programs.BruteSSHProgram.name);
|
||||||
}
|
}
|
||||||
if (augmentationExists(AugmentationNames.PCMatrix) && Player.hasAugmentation(AugmentationNames.PCMatrix)) {
|
if (augmentationExists(AugmentationNames.PCMatrix) && Player.hasAugmentation(AugmentationNames.PCMatrix, true)) {
|
||||||
homeComp.programs.push(Programs.DeepscanV1.name);
|
homeComp.programs.push(Programs.DeepscanV1.name);
|
||||||
homeComp.programs.push(Programs.AutoLink.name);
|
homeComp.programs.push(Programs.AutoLink.name);
|
||||||
}
|
}
|
||||||
@ -151,7 +151,7 @@ export function prestigeAugmentation(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Red Pill
|
// Red Pill
|
||||||
if (augmentationExists(AugmentationNames.TheRedPill) && Player.hasAugmentation(AugmentationNames.TheRedPill)) {
|
if (augmentationExists(AugmentationNames.TheRedPill) && Player.hasAugmentation(AugmentationNames.TheRedPill, true)) {
|
||||||
const WorldDaemon = GetServer(SpecialServers.WorldDaemon);
|
const WorldDaemon = GetServer(SpecialServers.WorldDaemon);
|
||||||
const DaedalusServer = GetServer(SpecialServers.DaedalusServer);
|
const DaedalusServer = GetServer(SpecialServers.DaedalusServer);
|
||||||
if (WorldDaemon && DaedalusServer) {
|
if (WorldDaemon && DaedalusServer) {
|
||||||
@ -160,7 +160,10 @@ export function prestigeAugmentation(): void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (augmentationExists(AugmentationNames.StaneksGift1) && Player.hasAugmentation(AugmentationNames.StaneksGift1)) {
|
if (
|
||||||
|
augmentationExists(AugmentationNames.StaneksGift1) &&
|
||||||
|
Player.hasAugmentation(AugmentationNames.StaneksGift1, true)
|
||||||
|
) {
|
||||||
joinFaction(Factions[FactionNames.ChurchOfTheMachineGod]);
|
joinFaction(Factions[FactionNames.ChurchOfTheMachineGod]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ export class FactionWork extends Work {
|
|||||||
|
|
||||||
getReputationRate(player: IPlayer): number {
|
getReputationRate(player: IPlayer): number {
|
||||||
let focusBonus = 1;
|
let focusBonus = 1;
|
||||||
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager,true)) {
|
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager, true)) {
|
||||||
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
|
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
|
||||||
}
|
}
|
||||||
return calculateFactionRep(player, this.factionWorkType, this.getFaction().favor) * focusBonus;
|
return calculateFactionRep(player, this.factionWorkType, this.getFaction().favor) * focusBonus;
|
||||||
@ -47,7 +47,7 @@ export class FactionWork extends Work {
|
|||||||
|
|
||||||
getExpRates(player: IPlayer): WorkStats {
|
getExpRates(player: IPlayer): WorkStats {
|
||||||
let focusBonus = 1;
|
let focusBonus = 1;
|
||||||
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager,true)) {
|
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager, true)) {
|
||||||
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
|
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
|
||||||
}
|
}
|
||||||
const rate = calculateFactionExp(player, this.factionWorkType);
|
const rate = calculateFactionExp(player, this.factionWorkType);
|
||||||
|
@ -37,7 +37,7 @@ export class GraftingWork extends Work {
|
|||||||
|
|
||||||
process(player: IPlayer, cycles: number): boolean {
|
process(player: IPlayer, cycles: number): boolean {
|
||||||
let focusBonus = 1;
|
let focusBonus = 1;
|
||||||
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager,true)) {
|
if (!player.hasAugmentation(AugmentationNames.NeuroreceptorManager, true)) {
|
||||||
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
|
focusBonus = player.focus ? 1 : CONSTANTS.BaseFocusBonus;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ export class GraftingWork extends Work {
|
|||||||
if (!cancelled) {
|
if (!cancelled) {
|
||||||
applyAugmentation({ name: augName, level: 1 });
|
applyAugmentation({ name: augName, level: 1 });
|
||||||
|
|
||||||
if (!player.hasAugmentation(AugmentationNames.CongruityImplant)) {
|
if (!player.hasAugmentation(AugmentationNames.CongruityImplant, true)) {
|
||||||
player.entropy += 1;
|
player.entropy += 1;
|
||||||
player.applyEntropy(player.entropy);
|
player.applyEntropy(player.entropy);
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ export class GraftingWork extends Work {
|
|||||||
<>
|
<>
|
||||||
You've finished grafting {augName}.<br />
|
You've finished grafting {augName}.<br />
|
||||||
The augmentation has been applied to your body{" "}
|
The augmentation has been applied to your body{" "}
|
||||||
{player.hasAugmentation(AugmentationNames.CongruityImplant) ? "." : ", but you feel a bit off."}
|
{player.hasAugmentation(AugmentationNames.CongruityImplant, true) ? "." : ", but you feel a bit off."}
|
||||||
</>,
|
</>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user