mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 19:37:07 +02:00
MISC: Clarify conditions of activating Gang, Bladeburner, Stanek's Gift (#2053)
This commit is contained in:
@@ -110,15 +110,19 @@ export function NetscriptStanek(): InternalAPI<IStanek> {
|
||||
acceptGift: (ctx) => () => {
|
||||
const cotmgFaction = Factions[FactionName.ChurchOfTheMachineGod];
|
||||
// Check if the player is eligible to join the church
|
||||
if (canAcceptStaneksGift()) {
|
||||
const checkResult = canAcceptStaneksGift();
|
||||
if (checkResult.success) {
|
||||
// Join the CotMG factionn
|
||||
joinFaction(cotmgFaction);
|
||||
// Install the first Stanek aug
|
||||
applyAugmentation({ name: AugmentationName.StaneksGift1, level: 1 });
|
||||
helpers.log(
|
||||
ctx,
|
||||
() => `'${FactionName.ChurchOfTheMachineGod}' joined and '${AugmentationName.StaneksGift1}' installed.`,
|
||||
() =>
|
||||
`You joined '${FactionName.ChurchOfTheMachineGod}' and have '${AugmentationName.StaneksGift1}' installed.`,
|
||||
);
|
||||
} else {
|
||||
helpers.log(ctx, () => checkResult.message);
|
||||
}
|
||||
// Return true if the player is in CotMG and has the first Stanek aug installed
|
||||
return cotmgFaction.isMember && Player.hasAugmentation(AugmentationName.StaneksGift1, true);
|
||||
|
||||
Reference in New Issue
Block a user