Added Options button to top right overview. Script object optimization by deleting server maps when not active. Fixed issue with servers getting negative money

This commit is contained in:
Daniel Xie
2017-06-13 10:58:31 -05:00
parent 6b2d6b5ded
commit 69d4af01ff
8 changed files with 50 additions and 30 deletions
+4 -1
View File
@@ -1237,7 +1237,10 @@ var Terminal = {
server.runningScripts.push(script.filename); //Push onto runningScripts
//Initialize the maps for counting grow/hack/weaken
//script.moneyStolenMap = new AllServersMap();
script.moneyStolenMap = new AllServersMap();
script.numTimesHackMap = new AllServersMap();
script.numTimesGrowMap = new AllServersMap();
script.numTimesWeakenMap = new AllServersMap();
addWorkerScript(script, server);
return;