mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
Add triggers for faction invite check
Manually check for faction invites whenever a server is backdoored, and whenever the player uses ns.singularity.checkFactionInvites
This commit is contained in:
@@ -34,6 +34,7 @@ import { dialogBoxCreate } from "../ui/React/DialogBox";
|
||||
import { checkEnum } from "../utils/helpers/enum";
|
||||
import { RamCostConstants } from "./RamCostGenerator";
|
||||
import { isPositiveInteger, PositiveInteger } from "../types";
|
||||
import { Engine } from "../engine";
|
||||
|
||||
export const helpers = {
|
||||
string,
|
||||
@@ -515,6 +516,9 @@ function hack(
|
||||
}
|
||||
if (manual) {
|
||||
server.backdoorInstalled = true;
|
||||
// Manunally check for faction invites
|
||||
Engine.Counters.checkFactionInvitations = 0;
|
||||
Engine.checkCounters();
|
||||
}
|
||||
return moneyGained;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user