mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 03:24:48 +01:00
addressing comments
This commit is contained in:
@ -413,8 +413,7 @@ PlayerObject.prototype.getUpgradeHomeRamCost = function() {
|
||||
//Calculate cost
|
||||
//Have cost increase by some percentage each time RAM has been upgraded
|
||||
const mult = Math.pow(1.58, numUpgrades);
|
||||
var cost = currentRam * CONSTANTS.BaseCostFor1GBOfRamHome;
|
||||
cost = cost * mult;
|
||||
var cost = currentRam * CONSTANTS.BaseCostFor1GBOfRamHome * mult;
|
||||
cost = cost.toPrecision(5);
|
||||
return cost;
|
||||
}
|
||||
|
Reference in New Issue
Block a user