Minor bug fixes, adding spotify music player, and adding sphinx documentation

This commit is contained in:
danielyxie
2018-01-09 14:48:06 -06:00
parent 79274defc4
commit f211e8856f
87 changed files with 23934 additions and 34 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ HacknetNode.prototype.updateMoneyGainRate = function() {
}
HacknetNode.prototype.calculateLevelUpgradeCost = function(levels=1) {
if (levels < 1) {return 0;}
levels = Math.round(levels);
if (isNaN(levels) || levels < 1) {return 0;}
var mult = CONSTANTS.HacknetNodeUpgradeLevelMult;
var totalMultiplier = 0; //Summed
var currLevel = this.level;