From 56281dcf2729adeb797ba664744e70ec2d87c69a Mon Sep 17 00:00:00 2001 From: caspase Date: Wed, 14 May 2025 10:46:35 +0100 Subject: [PATCH 1/2] Removed Netburners from list of opponents when in BN 8 --- go.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/go.js b/go.js index 51c09983..6412a1e6 100644 --- a/go.js +++ b/go.js @@ -87,6 +87,11 @@ export async function main(ns) { const opponent = ["Netburners", "Slum Snakes", "The Black Hand", "Tetrads", "Daedalus", "Illuminati"]; const opponent2 = ["Netburners", "Slum Snakes", "The Black Hand", "Tetrads", "Daedalus", "Illuminati", "????????????"]; + if (ns.getResetInfo() == 8) { + opponent.splice(index, 0); + opponent2.splice(index, 0); + } + await start(); /** @param {NS} ns */ @@ -1563,4 +1568,4 @@ export async function main(ns) { else return getRandomStrat() } } -} \ No newline at end of file +} From 42f9c5867cb68fe102b3c47bca9a07977159f319 Mon Sep 17 00:00:00 2001 From: BoxTrot Date: Sun, 18 May 2025 05:32:56 +0100 Subject: [PATCH 2/2] Update go.js Co-authored-by: Alain Bryden <2285037+alainbryden@users.noreply.github.com> --- go.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go.js b/go.js index 6412a1e6..30c7fb67 100644 --- a/go.js +++ b/go.js @@ -87,7 +87,8 @@ export async function main(ns) { const opponent = ["Netburners", "Slum Snakes", "The Black Hand", "Tetrads", "Daedalus", "Illuminati"]; const opponent2 = ["Netburners", "Slum Snakes", "The Black Hand", "Tetrads", "Daedalus", "Illuminati", "????????????"]; - if (ns.getResetInfo() == 8) { + let resetInfo = await getNsDataThroughFile(ns, 'ns.getResetInfo()'); + if (resetInfo.currentNode == 8) { opponent.splice(index, 0); opponent2.splice(index, 0); }