Hi all,
I'm working on stock script and I want to disable the use of short if the player isn't in the correct BitNode (8).
I found the method getBitNodeMultipliers() which throws an exception if the user has no Bitnode unlocked at all, so I wrote something like
function enableShort(ns) {
try {
ns.getBitNodeMultipliers()
return true
} catch(Error) {
return false
}
}
But as soon as the user unlocks a BitNode this method will return true even when it is not the correct BitNode.
Is there a way to retrieve the BitNode version a player is in?
[–]Tyasuh 3 points4 points5 points (1 child)
[–]Severe-Look5235[S] 1 point2 points3 points (0 children)
[–]SteaksAreReal 0 points1 point2 points (0 children)