Skip to content

Commit

Permalink
Merge pull request #434 from rraumberger/patch-1
Browse files Browse the repository at this point in the history
Disable WD hack priority when required hack level is achieved
  • Loading branch information
alainbryden authored Nov 7, 2024
2 parents 1b01078 + 0b73696 commit b599fa1
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 b599fa1

Please sign in to comment.