Skip to content

Commit

Permalink
Disable WD hack priority when required hack level is achieved
Browse files Browse the repository at this point in the history
  • Loading branch information
rraumberger authored Nov 7, 2024
1 parent 1b01078 commit 0b73696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autopilot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
}
}

0 comments on commit 0b73696

Please sign in to comment.