From 4945683d092d46c090abc53a4c514bcd57a19374 Mon Sep 17 00:00:00 2001 From: Mizzajl Date: Sun, 6 Oct 2024 09:59:53 +0200 Subject: [PATCH] fixin stuff? --- Mizzajl/home/EveryServerRun.js | 2 +- Mizzajl/home/scanFactionAugments.js | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Mizzajl/home/scanFactionAugments.js diff --git a/Mizzajl/home/EveryServerRun.js b/Mizzajl/home/EveryServerRun.js index 843223d..455cff7 100644 --- a/Mizzajl/home/EveryServerRun.js +++ b/Mizzajl/home/EveryServerRun.js @@ -32,7 +32,7 @@ export async function main(ns) { //ns.tprint("nGrowScriptRAM = " + nGrowScriptRAM); //const nFrequency = 50; - const nFrequency = getSetting(ns, "batchFrequency"); + const nFrequency = getSetting("batchFrequency"); let nScriptsRAM; let nMaxRam; let nScripts; diff --git a/Mizzajl/home/scanFactionAugments.js b/Mizzajl/home/scanFactionAugments.js new file mode 100644 index 0000000..ebbc94a --- /dev/null +++ b/Mizzajl/home/scanFactionAugments.js @@ -0,0 +1,24 @@ +/** @param {NS} ns */ +export async function main(ns) { + + let aFactions = ns.getPlayer().factions; + ns.tprint("aFactions = " + aFactions); + let aAugmentations; + let sStats; + + for (let f = 0; f < aFactions.length; f++) { + //ns.tprint("f = " + f); + //sFaction = ns.singularity.faction + aAugmentations = ns.singularity.getAugmentationsFromFaction(aFactions[f]); + ns.tprint("aAugmentations = " + aAugmentations); + ns.tprint("----------------------------------------------------------------------------------------------------------------------------------------------------------"); + for (let a = 0; a < aFactions.length; a++) { + sStats = JSON.stringify(ns.singularity.getAugmentationStats(aAugmentations[a])); + ns.tprint(aAugmentations[f] + "sStats = " + sStats); + ns.tprint("----------------------------------------------------------------------------------------------------------------------------------------------------------"); + } + + } + + +} \ No newline at end of file