mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
Rebalancing script RAM Usage. Script base RAM cost is 1.5GB, while common functions were made cheaper
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ Script.prototype.reset = function() {
|
||||
|
||||
//Updates how much RAM the script uses when it is running.
|
||||
Script.prototype.updateRamUsage = function() {
|
||||
var baseRam = 1; //Each script requires 1GB to run regardless
|
||||
var baseRam = 1.5; //Each script requires 1GB to run regardless
|
||||
var codeCopy = this.code.repeat(1);
|
||||
codeCopy = codeCopy.replace(/\s/g,''); //Remove all whitespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user