From 0b736966eb3b475612003f3caa90c5ead7405a2f Mon Sep 17 00:00:00 2001 From: Richard Raumberger Date: Thu, 7 Nov 2024 10:36:10 +0100 Subject: [PATCH] Disable WD hack priority when required hack level is achieved --- autopilot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autopilot.js b/autopilot.js index 3125dd05..4ac9b496 100644 --- a/autopilot.js +++ b/autopilot.js @@ -323,7 +323,7 @@ async function checkIfBnIsComplete(ns, player) { // HEURISTIC: If we naturally get within 75% of the if w0r1d_d43m0n hack stat requirement, // switch daemon.js to prioritize earning hack exp for the remainder of the BN if (player.skills.hacking >= (wdHack * 0.75)) - prioritizeHackForWd = true; + prioritizeHackForWd = !bnComplete; if (!bnComplete) return false; // No win conditions met @@ -923,4 +923,4 @@ function setStatus(ns, status, uniquePart = null) { * @param {NS} ns */ function persist_log(ns, text) { ns.write(persistentLog, `${(new Date()).toISOString().substring(0, 19)} ${text}\n`, "a") -} \ No newline at end of file +}