mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
BUGFIX: Engine does not send all faction invitations (#1277)
This commit is contained in:
parent
cfa941ce58
commit
81a707123e
@ -162,9 +162,8 @@ const Engine: {
|
||||
checkCounters: function () {
|
||||
if (Engine.Counters.checkFactionInvitations <= 0) {
|
||||
const invitedFactions = Player.checkForFactionInvitations();
|
||||
if (invitedFactions.length > 0) {
|
||||
const randFaction = invitedFactions[Math.floor(Math.random() * invitedFactions.length)];
|
||||
inviteToFaction(randFaction);
|
||||
for (const invitedFaction of invitedFactions) {
|
||||
inviteToFaction(invitedFaction);
|
||||
}
|
||||
Engine.Counters.checkFactionInvitations = 100;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user