mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-09-20 12:58:33 +02:00
quick b1tflum3
This commit is contained in:
parent
89cdecb05f
commit
d2d6453a78
@ -135,6 +135,10 @@ class DevMenuComponent extends Component {
|
|||||||
Player.getHomeComputer().maxRam *= 2;
|
Player.getHomeComputer().maxRam *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
quickB1tFlum3() {
|
||||||
|
hackWorldDaemon(Player.bitNodeN, true, true);
|
||||||
|
}
|
||||||
|
|
||||||
b1tflum3() {
|
b1tflum3() {
|
||||||
hackWorldDaemon(Player.bitNodeN, true);
|
hackWorldDaemon(Player.bitNodeN, true);
|
||||||
}
|
}
|
||||||
@ -705,7 +709,8 @@ class DevMenuComponent extends Component {
|
|||||||
<button className="std-button" onClick={this.upgradeRam}>Upgrade Home Computer's RAM</button>
|
<button className="std-button" onClick={this.upgradeRam}>Upgrade Home Computer's RAM</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<button className="std-button" onClick={this.b1tflum3}>Run bit_flum3.exe</button>
|
<button className="std-button" onClick={this.quickB1tFlum3}>Quick b1t_flum3.exe</button>
|
||||||
|
<button className="std-button" onClick={this.b1tflum3}>Run b1t_flum3.exe</button>
|
||||||
<button className="std-button" onClick={this.hackW0r1dD43m0n}>Hack w0rld_d34m0n</button>
|
<button className="std-button" onClick={this.hackW0r1dD43m0n}>Hack w0rld_d34m0n</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
|
@ -58,13 +58,17 @@ function writeRedPillLetter(pElem, line, i=0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let redPillFlag = false;
|
let redPillFlag = false;
|
||||||
function hackWorldDaemon(currentNodeNumber, flume=false) {
|
function hackWorldDaemon(currentNodeNumber, flume=false, quick=false) {
|
||||||
// Clear Red Pill screen first
|
// Clear Red Pill screen first
|
||||||
var container = document.getElementById("red-pill-content");
|
var container = document.getElementById("red-pill-content");
|
||||||
removeChildrenFromElement(container);
|
removeChildrenFromElement(container);
|
||||||
|
|
||||||
redPillFlag = true;
|
redPillFlag = true;
|
||||||
Engine.loadRedPillContent();
|
Engine.loadRedPillContent();
|
||||||
|
|
||||||
|
if(quick) {
|
||||||
|
return loadBitVerse(currentNodeNumber, flume, quick);
|
||||||
|
}
|
||||||
return writeRedPillLine("[ERROR] SEMPOOL INVALID").then(function() {
|
return writeRedPillLine("[ERROR] SEMPOOL INVALID").then(function() {
|
||||||
return writeRedPillLine("[ERROR] Segmentation Fault");
|
return writeRedPillLine("[ERROR] Segmentation Fault");
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
@ -143,7 +147,7 @@ function giveSourceFile(bitNodeNumber) {
|
|||||||
// is destroyed. Updated every time loadBitVerse() is called
|
// is destroyed. Updated every time loadBitVerse() is called
|
||||||
let nextSourceFileFlags = [];
|
let nextSourceFileFlags = [];
|
||||||
|
|
||||||
function loadBitVerse(destroyedBitNodeNum, flume=false) {
|
function loadBitVerse(destroyedBitNodeNum, flume=false, quick=false) {
|
||||||
// Clear the screen
|
// Clear the screen
|
||||||
const container = document.getElementById("red-pill-content");
|
const container = document.getElementById("red-pill-content");
|
||||||
removeChildrenFromElement(container);
|
removeChildrenFromElement(container);
|
||||||
@ -221,6 +225,10 @@ function loadBitVerse(destroyedBitNodeNum, flume=false) {
|
|||||||
}(i)); // Immediate invocation closure
|
}(i)); // Immediate invocation closure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(quick) {
|
||||||
|
return Promise.resolve(true);
|
||||||
|
}
|
||||||
|
|
||||||
// Create lore text
|
// Create lore text
|
||||||
return writeRedPillLine("Many decades ago, a humanoid extraterrestial species which we call the Enders descended on the Earth...violently").then(function() {
|
return writeRedPillLine("Many decades ago, a humanoid extraterrestial species which we call the Enders descended on the Earth...violently").then(function() {
|
||||||
return writeRedPillLine("Our species fought back, but it was futile. The Enders had technology far beyond our own...");
|
return writeRedPillLine("Our species fought back, but it was futile. The Enders had technology far beyond our own...");
|
||||||
|
Loading…
Reference in New Issue
Block a user