mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +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(
|
||||||
joinFaction(cotmgFaction);
|
(a) => a.name !== AugmentationName.NeuroFluxGovernor,
|
||||||
// Attempt to install the first Stanek aug (unless it is already queued)
|
);
|
||||||
if (!Player.hasAugmentation(AugmentationName.StaneksGift1, false)) {
|
if (augs.length == 0) {
|
||||||
|
// Join the CotMG factionn
|
||||||
|
joinFaction(cotmgFaction);
|
||||||
|
// Install the first Stanek aug
|
||||||
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