Compare commits
8 Commits
fd61cb72e1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d5e55b31b3 | |||
| 4945683d09 | |||
| cfdc1e0550 | |||
| 23cb424e56 | |||
| ce4c8f26ee | |||
|
|
902e1e16bc | ||
|
|
0832725507 | ||
| 30b2e4d041 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -146,6 +146,7 @@ build/
|
|||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
|
|
||||||
# Non Clashing Bitburner Override
|
# Non Clashing Bitburner Override
|
||||||
config.mjs*
|
*config.mjs*
|
||||||
*serverList.txt*
|
*serverList.txt*
|
||||||
*bestTarget.txt*
|
*bestTarget.txt*
|
||||||
|
config.mjs
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { getGrowThreads } from "myLibrary.js";
|
import { getGrowThreads, getSetting } from "myLibrary.js";
|
||||||
|
|
||||||
/** @param {NS} ns */
|
/** @param {NS} ns */
|
||||||
export async function main(ns) {
|
export async function main(ns) {
|
||||||
@@ -31,7 +31,8 @@ export async function main(ns) {
|
|||||||
const nGrowScriptRAM = 1.7 * nGrowThreads;
|
const nGrowScriptRAM = 1.7 * nGrowThreads;
|
||||||
//ns.tprint("nGrowScriptRAM = " + nGrowScriptRAM);
|
//ns.tprint("nGrowScriptRAM = " + nGrowScriptRAM);
|
||||||
|
|
||||||
const nFrequency = 50;
|
//const nFrequency = 50;
|
||||||
|
const nFrequency = getSetting(ns, "batchFrequency");
|
||||||
let nScriptsRAM;
|
let nScriptsRAM;
|
||||||
let nMaxRam;
|
let nMaxRam;
|
||||||
let nScripts;
|
let nScripts;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { getGrowThreads } from "myLibrary.js";
|
import { getGrowThreads, getSetting } from "myLibrary.js";
|
||||||
|
|
||||||
/** @param {NS} ns */
|
/** @param {NS} ns */
|
||||||
export async function main(ns) {
|
export async function main(ns) {
|
||||||
@@ -22,7 +22,8 @@ export async function main(ns) {
|
|||||||
const sGrowScript = "RMgrow.js";
|
const sGrowScript = "RMgrow.js";
|
||||||
const sWeakenScript = "RMweaken.js";
|
const sWeakenScript = "RMweaken.js";
|
||||||
|
|
||||||
const nHackThreads = 50; //1
|
//const nHackThreads = 50; //1
|
||||||
|
const nHackThreads = getSetting(ns, "batchHacks"); //1
|
||||||
|
|
||||||
const nHackScriptRAM = 1.75;
|
const nHackScriptRAM = 1.75;
|
||||||
const nGrowScriptRAM = 1.7;
|
const nGrowScriptRAM = 1.7;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
{"setting":{
|
{"setting":{
|
||||||
"autoUpgrades":true,
|
"autoUpgrades":true,
|
||||||
"autoPurchaseServers":true
|
"autoPurchaseServers":true,
|
||||||
|
"batchHacks":50,
|
||||||
|
"batchFrequency":1000
|
||||||
}}
|
}}
|
||||||
Reference in New Issue
Block a user