hashGainRate updated to use the correct usedRam and maxRam

This commit is contained in:
Olivier Gagnon
2021-05-05 19:18:47 -04:00
parent a9cee6f907
commit 764c2533b4
2 changed files with 9 additions and 8 deletions

View File

@@ -4447,9 +4447,9 @@ function NetscriptFunctions(workerScript) {
},
},
hacknetServers: {
hashGainRate: function(level, ram, cores, mult=1) {
hashGainRate: function(level, ramUsed, maxRam, cores, mult=1) {
checkFormulasAccess("hacknetServers.hashGainRate", 9);
return HScalculateHashGainRate(level, ram, cores, mult);
return HScalculateHashGainRate(level, ramUsed, maxRam, cores, mult=1);
},
levelUpgradeCost: function(startingLevel, extraLevels=1, costMult=1) {
checkFormulasAccess("hacknetServers.levelUpgradeCost", 9);