updated EveryServerRun and batch to read from settings.txt

This commit is contained in:
2024-10-06 09:45:38 +02:00
parent fd61cb72e1
commit 30b2e4d041
3 changed files with 9 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import { getGrowThreads } from "myLibrary.js";
import { getGrowThreads, getSetting } from "myLibrary.js";
/** @param {NS} ns */
export async function main(ns) {
@@ -22,7 +22,8 @@ export async function main(ns) {
const sGrowScript = "RMgrow.js";
const sWeakenScript = "RMweaken.js";
const nHackThreads = 50; //1
//const nHackThreads = 50; //1
const nHackThreads = getSetting("batchHacks"); //1
const nHackScriptRAM = 1.75;
const nGrowScriptRAM = 1.7;