Compare commits

..

10 Commits

Author SHA1 Message Date
d5e55b31b3 small update 2024-10-06 10:01:09 +02:00
4945683d09 fixin stuff? 2024-10-06 09:59:53 +02:00
cfdc1e0550 config.mjs mizzajl 2024-10-06 09:56:00 +02:00
23cb424e56 Merge branch 'main' of https://gitea.goetje-ing.de/ArchitectsOfTheBitburner/A_Bitburner_Saga 2024-10-06 09:51:14 +02:00
ce4c8f26ee test 2024-10-06 09:51:03 +02:00
Philipp
902e1e16bc this should now be an empty commit 2024-10-06 09:49:23 +02:00
Philipp
0832725507 maybe gitignore is fixed now? 2024-10-06 09:49:08 +02:00
30b2e4d041 updated EveryServerRun and batch to read from settings.txt 2024-10-06 09:45:38 +02:00
fd61cb72e1 second try 2024-10-06 09:30:35 +02:00
3cf9484442 moving some files around 2024-10-06 08:57:15 +02:00
14 changed files with 14 additions and 8 deletions

3
.gitignore vendored
View File

@@ -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

View File

@@ -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;

View File

@@ -103,8 +103,9 @@ export async function main(ns) {
//Home Upgrades //Home Upgrades
if (nMoney > ns.singularity.getUpgradeHomeRamCost()) { if (nMoney > ns.singularity.getUpgradeHomeRamCost()) {
let nHomeRAMUpgradeCost = ns.singularity.getUpgradeHomeRamCost();
ns.singularity.upgradeHomeRam(); ns.singularity.upgradeHomeRam();
ns.tprint(cCyan + "Upgraded home RAM" + cReset); ns.tprint(cCyan + "Upgraded home RAM to " + (nHomeMaxRAM*2) + " for " + nHomeRAMUpgradeCost + cReset);
} }
else if (nCores < 8 && nMoney > ns.singularity.getUpgradeHomeCoresCost()) { else if (nCores < 8 && nMoney > ns.singularity.getUpgradeHomeCoresCost()) {
ns.singularity.upgradeHomeCores(); ns.singularity.upgradeHomeCores();

View File

@@ -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 = 5; //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;

View File

@@ -1,4 +1,6 @@
{"setting":{ {"setting":{
"autoUpgrades":false, "autoUpgrades":true,
"autoPurchaseServers":true "autoPurchaseServers":true,
"batchHacks":50,
"batchFrequency":1000
}} }}