Adding messages. Changed hacking factions to rely on hacking their specific servers to get the invite. Made Augmentations more expensive

This commit is contained in:
Daniel Xie
2017-06-01 23:15:45 -05:00
parent 236facab97
commit 94dd4395be
13 changed files with 287 additions and 44 deletions
+8 -2
View File
@@ -602,8 +602,9 @@ var Engine = {
updateDisplays: 3, //Update displays such as Active Scripts display and character display
createProgramNotifications: 10, //Checks whether any programs can be created and notifies
serverGrowth: 450, //Process server growth every minute and a half
checkFactionInvitations: 1000, //Check whether you qualify for any faction invitations every 5 minutes
checkFactionInvitations: 250, //Check whether you qualify for any faction invitations every 5 minutes
passiveFactionGrowth: 600,
messages: 300,
},
decrementAllCounters: function(numCycles = 1) {
@@ -667,7 +668,7 @@ var Engine = {
var randFaction = invitedFactions[Math.floor(Math.random() * invitedFactions.length)];
inviteToFaction(randFaction);
}
Engine.Counters.checkFactionInvitations = 1000;
Engine.Counters.checkFactionInvitations = 250;
}
if (Engine.Counters.passiveFactionGrowth <= 0) {
@@ -675,6 +676,11 @@ var Engine = {
processPassiveFactionRepGain(adjustedCycles);
Engine.Counters.passiveFactionGrowth = 600;
}
if (Engine.Counters.messages <= 0) {
checkForMessagesToSend();
Engine.Counters.messages = 300;
}
},
/* Calculates the hack progress for a manual (non-scripted) hack and updates the progress bar/time accordingly */