If statements in NetScript should work now

This commit is contained in:
Daniel Xie
2017-05-11 23:59:07 -05:00
parent 3ac33cd9e7
commit c44b514342
6 changed files with 96 additions and 39 deletions
+2 -3
View File
@@ -136,6 +136,8 @@ Script.prototype.saveScript = function() {
this.onlineRunningTime = 0.01; //Seconds
this.onlineMoneyMade = 0;
this.lastUpdate = 0;
this.logs = [];
}
}
@@ -146,9 +148,6 @@ Script.prototype.reset = function() {
this.onlineRunningTime = 0.01; //Seconds
this.onlineMoneyMade = 0;
this.onlineExpGained = 0;
this.moneyStolenMap = new AllServersToMoneyMap();
console.log("Reset moneyStolenMap: " + this.moneyStolenMap);
}
//Calculates the number of instructions, which is just determined by number of semicolons