/lowram/Lowprep.js is now using testdistribute.js

This commit is contained in:
2024-10-14 01:25:02 +02:00
parent fc25418810
commit 151c773446
6 changed files with 54 additions and 26 deletions

View File

@@ -8,6 +8,7 @@ export async function main(ns) {
const sPrepScript = "lowram/Lowprep.js";
const sRunScript = "lowram/Lowrun.js";
const sGrowScript = "lowram/Lowgrow.js";
const sDistScript = "testdistribute.js";
const nTargetMoney = ns.getServerMoneyAvailable(sTarget);
const nTargetMaxMoney = ns.getServerMaxMoney(sTarget);
@@ -20,10 +21,10 @@ export async function main(ns) {
if (nTargetSecurity > nTargetMinSecurity + 1) {
ns.spawn(sPrepScript, { threads: 1, spawnDelay: 0 }, sTarget);
}
else if (nTargetMoney < nTargetMaxMoney) {
/*else if (nTargetMoney < nTargetMaxMoney) {
//ns.print("need to prep MONEY, running " + sGrowScript);
ns.spawn(sGrowScript, { threads: 1, spawnDelay: 0 }, sTarget);
}
}*/
else {
ns.spawn(sBatchScript, { threads: 1, spawnDelay: 0 }, sTarget);
}