From 0df234a35bad91b7b0ee9c86221c0d7ca37bff90 Mon Sep 17 00:00:00 2001 From: Alain Bryden <2285037+alainbryden@users.noreply.github.com> Date: Thu, 28 Nov 2024 14:13:44 -0400 Subject: [PATCH] Add a log when initializing initial-max-targets for --stock-manipulation-focus mode --- daemon.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon.js b/daemon.js index 9ed0863c..16f8a4d3 100644 --- a/daemon.js +++ b/daemon.js @@ -315,8 +315,10 @@ export async function main(ns) { maxBatches = options['max-batches']; homeReservedRam = options['reserved-ram'] maxTargets = options['initial-max-targets'] ?? 0; - if (stockFocus) // If the user explicitly requested to focus on stocks, ensure we start with as many targets as there are stock symbols + if (stockFocus) { // If the user explicitly requested to focus on stocks, ensure we start with as many targets as there are stock symbols maxTargets = Math.max(maxTargets, Object.keys(serverStockSymbols).length); + log(ns, `Defaulting --initial-max-targets to ${maxTargets} so that we may manipulate every stock (due to --stock-manipulation-focus flag)`); + } // Log which flaggs are active if (hackOnly) log(ns, '-h - Hack-Only mode activated!');