Properly focuses on Script editor when its opened

This commit is contained in:
Daniel Xie
2017-05-15 22:27:47 -05:00
parent f1b7d78ba3
commit 223bc3c2c6
5 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ HacknetNode.prototype.updateMoneyGainRate = function() {
//Each CPU core doubles the speed. Every 1GB of ram adds 15% increase
this.moneyGainRatePerSecond = (this.level * gainPerLevel) *
Math.pow(1.05, this.ram-1) *
Math.pow(1.07, this.ram-1) *
((this.numCores + 1) / 2) * Player.hacknet_node_money_mult;
if (isNaN(this.moneyGainRatePerSecond)) {
this.moneyGainRatePerSecond = 0;