Skip to content

Commit

Permalink
Add a log when initializing initial-max-targets for --stock-manipulat…
Browse files Browse the repository at this point in the history
…ion-focus mode
  • Loading branch information
alainbryden committed Nov 28, 2024
1 parent e8ea058 commit 0df234a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down

0 comments on commit 0df234a

Please sign in to comment.