mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
fix for stanek.acceptGift not working (#1001)
This commit is contained in:
parent
4db4b77954
commit
8742df9588
@ -110,11 +110,14 @@ export function NetscriptStanek(): InternalAPI<IStanek> {
|
|||||||
acceptGift: (ctx) => () => {
|
acceptGift: (ctx) => () => {
|
||||||
const cotmgFaction = Factions[FactionName.ChurchOfTheMachineGod];
|
const cotmgFaction = Factions[FactionName.ChurchOfTheMachineGod];
|
||||||
// Check if the player is eligible to join the church
|
// Check if the player is eligible to join the church
|
||||||
if (cotmgFaction.getInfo().inviteReqs.isSatisfied(Player)) {
|
if (Player.canAccessCotMG()) {
|
||||||
// Attempt to join CotMG
|
const augs = [...Player.augmentations, ...Player.queuedAugmentations].filter(
|
||||||
|
(a) => a.name !== AugmentationName.NeuroFluxGovernor,
|
||||||
|
);
|
||||||
|
if (augs.length == 0) {
|
||||||
|
// Join the CotMG factionn
|
||||||
joinFaction(cotmgFaction);
|
joinFaction(cotmgFaction);
|
||||||
// Attempt to install the first Stanek aug (unless it is already queued)
|
// Install the first Stanek aug
|
||||||
if (!Player.hasAugmentation(AugmentationName.StaneksGift1, false)) {
|
|
||||||
applyAugmentation({ name: AugmentationName.StaneksGift1, level: 1 });
|
applyAugmentation({ name: AugmentationName.StaneksGift1, level: 1 });
|
||||||
helpers.log(
|
helpers.log(
|
||||||
ctx,
|
ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user