This commit is contained in:
Philipp
2024-10-05 21:15:30 +02:00
4 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@@ -142,3 +142,5 @@ build/
.vscode/*
!.vscode/launch.json
local/path/home/bestTarget.txt
local/path/home/serverList.txt

View File

@@ -1 +1 @@
{"serverName":"the-hub","maxRam":32,"maxMoney":483168296.25,"minSec":13,"minPorts":2,"minHackLvl":318,"rootAccess":true,"factorMoneyPerTime":0.1841702873569451,"openPorts":0,"serverFiles":["factionboost.js"],"hackingChance":0.40919188586028893}
{"serverName":"the-hub","maxRam":32,"maxMoney":483168296.25,"minSec":13,"minPorts":2,"minHackLvl":318,"rootAccess":true,"factorMoneyPerTime":0.20289946912205814,"openPorts":0,"serverFiles":["factionboost.js"],"hackingChance":0.6338748693993541}

File diff suppressed because one or more lines are too long

View File

@@ -24,7 +24,7 @@ export async function main(ns) {
while (bAutoUpgrade && nCurrentRAM < 2 ** 20) {
//for (let i = 0; i < npServ.length; i++) {
for (let i = 0; i < npServ.length && bAutoUpgrade; i++) {
for (let i = 0; i < 1 && bAutoUpgrade; i++) {
ns.print("----------------------------------------------------------------------");
nMyMoney = ns.getServerMoneyAvailable("home");