Saving no longer saves logs of running scripts. Some more hacking augmentation nerfs. Reduced thread RAM cost multiplier from 1.02 to 1.01

This commit is contained in:
Daniel Xie
2017-06-18 04:31:14 -05:00
parent dc39b941dc
commit c2aa8d8110
6 changed files with 32 additions and 18 deletions
+1 -1
View File
@@ -971,7 +971,7 @@ function runScriptFromScript(server, scriptname, args, workerScript, threads=1)
//Check for admin rights and that there is enough RAM availble to run
var script = server.scripts[i];
var ramUsage = script.ramUsage;
ramUsage = ramUsage * threads * Math.pow(1.02, threads-1);
ramUsage = ramUsage * threads * Math.pow(1.01, threads-1);
var ramAvailable = server.maxRam - server.ramUsed;
if (server.hasAdminRights == false) {