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:
omuretsu
2023-03-07 19:31:54 -05:00
parent 401bfe9f31
commit b9ffb9e42e
3 changed files with 21 additions and 3 deletions
+4
View File
@@ -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 {