Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (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
Expand Down Expand Up @@ -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'];
Expand Down Expand Up @@ -1934,4 +1934,4 @@ let ownedCracks = [];
async function updatePortCrackers(ns) {
const owned = await filesExist(ns, crackNames);
ownedCracks = crackNames.filter((s, i) => owned[i]);
}
}