mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
hashGainRate updated to use the correct usedRam and maxRam
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user