From 91220772060b5d62a6aea45fb4d2b2077d1724e2 Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Fri, 2 Jun 2017 09:45:33 -0500 Subject: [PATCH] FIxed a bug with manuallyHacked flag --- src/Terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Terminal.js b/src/Terminal.js index a0ac0cdde..055f8d166 100644 --- a/src/Terminal.js +++ b/src/Terminal.js @@ -280,7 +280,6 @@ var Terminal = { finishHack: function(cancelled = false) { if (cancelled == false) { var server = Player.getCurrentServer(); - server.manuallyHacked = true; //Calculate whether hack was successful var hackChance = Player.calculateHackingChance(); @@ -289,6 +288,7 @@ var Terminal = { var expGainedOnSuccess = Player.calculateExpGain(); var expGainedOnFailure = (expGainedOnSuccess / 4); if (rand < hackChance) { //Success! + server.manuallyHacked = true; var moneyGained = Player.calculatePercentMoneyHacked(); moneyGained = Math.floor(server.moneyAvailable * moneyGained);