Server security increases slightly when hacked

This commit is contained in:
Daniel Xie
2017-05-31 11:45:30 -05:00
parent e70f499f13
commit 07d9dc6db8
4 changed files with 19 additions and 4 deletions
+1
View File
@@ -288,6 +288,7 @@ function evaluate(exp, workerScript) {
workerScript.scriptRef.onlineExpGained += expGainedOnSuccess;
console.log("Script successfully hacked " + server.hostname + " for $" + formatNumber(moneyGained, 2) + " and " + formatNumber(expGainedOnSuccess, 4) + " exp");
workerScript.scriptRef.log("Script SUCCESSFULLY hacked " + server.hostname + " for $" + formatNumber(moneyGained, 2) + " and " + formatNumber(expGainedOnSuccess, 4) + " exp");
server.fortify(CONSTANTS.ServerFortifyAmount);
resolve("Hack success");
} else {
if (env.stopFlag) {reject(workerScript); return;}