mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Merge pull request #3889 from stalefishies/purchase-aug-fix
MISC: Add faction membership check to singularity.purchaseAugmentation
This commit is contained in:
@@ -164,6 +164,11 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
|
|||||||
|
|
||||||
const augs = getFactionAugmentationsFiltered(player, fac);
|
const augs = getFactionAugmentationsFiltered(player, fac);
|
||||||
|
|
||||||
|
if (!player.factions.includes(fac.name)) {
|
||||||
|
_ctx.log(() => `You can't purchase augmentations from '${facName}' because you aren't a member`);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!augs.includes(augName)) {
|
if (!augs.includes(augName)) {
|
||||||
_ctx.log(() => `Faction '${facName}' does not have the '${augName}' augmentation.`);
|
_ctx.log(() => `Faction '${facName}' does not have the '${augName}' augmentation.`);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user