mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Actually fix faction invite spam
This commit is contained in:
parent
7226a9effa
commit
32197e024d
@ -23,6 +23,7 @@ import { getAugCost } from "../Augmentation/AugmentationHelpers";
|
|||||||
import { createEnumKeyedRecord, getRecordKeys } from "../Types/Record";
|
import { createEnumKeyedRecord, getRecordKeys } from "../Types/Record";
|
||||||
|
|
||||||
export function inviteToFaction(faction: Faction): void {
|
export function inviteToFaction(faction: Faction): void {
|
||||||
|
if (faction.alreadyInvited || faction.isMember) return;
|
||||||
Player.receiveInvite(faction.name);
|
Player.receiveInvite(faction.name);
|
||||||
faction.alreadyInvited = true;
|
faction.alreadyInvited = true;
|
||||||
if (!Settings.SuppressFactionInvites) {
|
if (!Settings.SuppressFactionInvites) {
|
||||||
|
Loading…
Reference in New Issue
Block a user