From cf8deca6200ae88db3ba9cf23ad2be0e4c94dcc6 Mon Sep 17 00:00:00 2001 From: Mark Bell <72212278+FlashflameVoidspirit@users.noreply.github.com> Date: Sun, 26 Nov 2023 12:35:58 -0500 Subject: [PATCH 1/2] Update daemon.js stockFocus edit to line 251 to check if in bn8 and removed todo message in line 26 --- daemon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.js b/daemon.js index 95f2930c..f42bce2b 100644 --- a/daemon.js +++ b/daemon.js @@ -23,7 +23,7 @@ const argsSchema = [ ['s', true], // Enable Stock Manipulation. This is now true for default, but left as a valid argument for backwards-compatibility. ['stock-manipulation', true], // Same as above ['disable-stock-manipulation', false], // You must now opt *out* of stock-manipulation mode by enabling this flag. - ['stock-manipulation-focus', false], // Stocks are main source of income - kill any scripts that would do them harm (TODO: Enable automatically in BN8) + ['stock-manipulation-focus', false], // Stocks are main source of income - kill any scripts that would do them harm ['v', false], // Detailed logs about batch scheduling / tuning ['verbose', false], // Same as above ['o', false], // Good for debugging, run the main targettomg loop once then stop, with some extra logs @@ -248,7 +248,7 @@ export async function main(ns) { hackOnly = options.h || options['hack-only']; xpOnly = options.x || options['xp-only']; stockMode = (options.s || options['stock-manipulation'] || options['stock-manipulation-focus']) && !options['disable-stock-manipulation']; - stockFocus = options['stock-manipulation-focus'] && !options['disable-stock-manipulation']; + stockFocus = (isInBn8 || options['stock-manipulation-focus']) && !options['disable-stock-manipulation']; useHacknetNodes = options.n || options['use-hacknet-nodes'] || options['use-hacknet-servers']; verbose = options.v || options['verbose']; runOnce = options.o || options['run-once']; @@ -1934,4 +1934,4 @@ let ownedCracks = []; async function updatePortCrackers(ns) { const owned = await filesExist(ns, crackNames); ownedCracks = crackNames.filter((s, i) => owned[i]); -} \ No newline at end of file +} From 59b489a824abfc69ced81f115d5ff32b4609331d Mon Sep 17 00:00:00 2001 From: Mark Bell <72212278+FlashflameVoidspirit@users.noreply.github.com> Date: Sun, 26 Nov 2023 12:41:00 -0500 Subject: [PATCH 2/2] Update daemon.js --- daemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.js b/daemon.js index f42bce2b..e1e4a6ed 100644 --- a/daemon.js +++ b/daemon.js @@ -23,7 +23,7 @@ const argsSchema = [ ['s', true], // Enable Stock Manipulation. This is now true for default, but left as a valid argument for backwards-compatibility. ['stock-manipulation', true], // Same as above ['disable-stock-manipulation', false], // You must now opt *out* of stock-manipulation mode by enabling this flag. - ['stock-manipulation-focus', false], // Stocks are main source of income - kill any scripts that would do them harm + ['stock-manipulation-focus', false], // Stocks are main source of income - kill any scripts that would do them harm (Enabled automatically in BN8) ['v', false], // Detailed logs about batch scheduling / tuning ['verbose', false], // Same as above ['o', false], // Good for debugging, run the main targettomg loop once then stop, with some extra logs