Skip to content

Commit

Permalink
Go now takes care of itself
Browse files Browse the repository at this point in the history
Rather than telling go to cheat or not, go.js has been updated. Instead, we tell it to be silent (since it is essentially always running in the background)
  • Loading branch information
alainbryden committed Oct 6, 2024
1 parent e234bf3 commit 6e6b241
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions autopilot.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,9 @@ async function checkOnRunningScripts(ns, player) {
launchScriptHelper(ns, 'work-for-factions.js', rushGang ? rushGangsArgs : workForFactionsArgs);
}

// Launch go.js
const goplayer = findScript('go.js');
if (!options["disable-go"] && !goplayer && homeRam >= 75) {
launchScriptHelper(ns, 'go.js', (14 in unlockedSFs) && (unlockedSFs[14] >= 2) ? ["--cheats"] : []);
// Launch go.js. If we have SF14.2 or higher, we can use the cheats API
if (!options['disable-go'] && !findScript('go.js') && homeRam >= 64) {
launchScriptHelper(ns, 'go.js', ['--silent']);
}
}

Expand Down

0 comments on commit 6e6b241

Please sign in to comment.