Added Augmentations for new Hacknet Node faction and rebalancing company positions so the requirements are in even numbers

This commit is contained in:
Daniel Xie
2017-05-02 14:24:24 -05:00
parent 36a261bd2e
commit 635ef04967
5 changed files with 114 additions and 40 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ HacknetNode.prototype.updateMoneyGainRate = function() {
var gainPerLevel = CONSTANTS.HacknetNodeMoneyGainPerLevel;
//Each CPU core doubles the speed. Every 1GB of ram adds 10% increase
this.moneyGainRatePerSecond = (this.level * gainPerLevel) * Math.pow(1.1, this.ram-1) * this.numCores;
this.moneyGainRatePerSecond = (this.level * gainPerLevel) *
Math.pow(1.1, this.ram-1) *
this.numCores * Player.hacknet_node_money_mult;
if (isNaN(this.moneyGainRatePerSecond)) {
throw new Error("Money gain rate calculated for Hacknet Node is NaN");
}