mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
Added new SF -1 called Bypass
This commit is contained in:
@@ -4442,6 +4442,19 @@ function NetscriptFunctions(workerScript) {
|
||||
exploit: function() {
|
||||
Player.giveExploit(Exploit.UndocumentedFunctionCall);
|
||||
},
|
||||
bypass: function(doc) {
|
||||
// reset both fields first
|
||||
doc.completely_unused_field = undefined;
|
||||
document.completely_unused_field = undefined;
|
||||
// set one to true and check that it affected the other.
|
||||
document.completely_unused_field = true;
|
||||
console.log(workerScript.ramUsage);
|
||||
if(doc.completely_unused_field && workerScript.ramUsage === 1.6) {
|
||||
Player.giveExploit(Exploit.Bypass);
|
||||
}
|
||||
doc.completely_unused_field = undefined;
|
||||
document.completely_unused_field = undefined;
|
||||
},
|
||||
flags: function(data) {
|
||||
data = toNative(data);
|
||||
// We always want the help flag.
|
||||
|
||||
Reference in New Issue
Block a user