more work on the lowram scripts

This commit is contained in:
2024-10-10 17:19:40 +02:00
parent 81b1675356
commit a63a9ca66f
15 changed files with 115 additions and 51 deletions

View File

@@ -9,12 +9,6 @@ export async function main(ns) {
const sWeakenScript = "RMweaken.js";
const sServerListFile = "serverList.txt";
// Lowram settings
const sBatchScript = "lowram/Lowhgw.js";
const sPrepScript = "lowram/Lowprep.js";
const sRunScript = "lowram/Lowrun.js";
const nHackScriptRAM = 1.75;
const nGrowScriptRAM = 1.7;
const nWeakenScriptRAM = 1.75;
@@ -78,7 +72,7 @@ export async function main(ns) {
nCheckRAM = nThisScriptRAM + (nTempHackThreads * nHackScriptRAM) + (nTempGrowThreadsINT * nGrowScriptRAM) + (nTempWeakenThreadsINT * nWeakenScriptRAM);
ns.print("nCheckRAM = " + nCheckRAM);
if (nCheckRAM < nMaxRAM) {
nUsedRAM = nCheckRAM;
nHackThreads = nTempHackThreads;