Skip to content

Commit

Permalink
Fix not actually avoiding installs while grafting.
Browse files Browse the repository at this point in the history
  • Loading branch information
alainbryden committed Nov 27, 2024
1 parent 1098c2b commit 9fe09c3
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 @@ -900,10 +900,10 @@ export async function main(ns) {
if (currentWork?.type == "GRAFTING") {
if (!wasGrafting) // Only log the first time we detect we've started grafting
log(ns, "Grafting in progress. autopilot.js will make sure to not install augmentations or otherwise interrupt it.");
wasGrafting = true;
return wasGrafting = true;
}
else
wasGrafting = false
return wasGrafting = false
}

/** Consolidated logic for all the times we want to reserve money
Expand Down

0 comments on commit 9fe09c3

Please sign in to comment.