MOre rebalancing with universities and companies

This commit is contained in:
Daniel Xie
2017-07-05 11:49:01 -05:00
parent 0f59d48c53
commit 542a32c768
5 changed files with 30 additions and 19 deletions
+3
View File
@@ -216,6 +216,9 @@ getMaxNumberLevelUpgrades = function(nodeObj) {
var min = 1;
var max = CONSTANTS.HacknetNodeMaxLevel-1;
var levelsToMax = CONSTANTS.HacknetNodeMaxLevel - nodeObj.level;
if (nodeObj.calculateLevelUpgradeCost(levelsToMax) < Player.money) {
return levelsToMax;
}
while (min <= max) {
var curr = (min + max) / 2 | 0;