quick b1tflum3

This commit is contained in:
Olivier Gagnon
2021-05-01 23:23:04 -04:00
parent 89cdecb05f
commit d2d6453a78
2 changed files with 16 additions and 3 deletions
+10 -2
View File
@@ -58,13 +58,17 @@ function writeRedPillLetter(pElem, line, i=0) {
}
let redPillFlag = false;
function hackWorldDaemon(currentNodeNumber, flume=false) {
function hackWorldDaemon(currentNodeNumber, flume=false, quick=false) {
// Clear Red Pill screen first
var container = document.getElementById("red-pill-content");
removeChildrenFromElement(container);
redPillFlag = true;
Engine.loadRedPillContent();
if(quick) {
return loadBitVerse(currentNodeNumber, flume, quick);
}
return writeRedPillLine("[ERROR] SEMPOOL INVALID").then(function() {
return writeRedPillLine("[ERROR] Segmentation Fault");
}).then(function() {
@@ -143,7 +147,7 @@ function giveSourceFile(bitNodeNumber) {
// is destroyed. Updated every time loadBitVerse() is called
let nextSourceFileFlags = [];
function loadBitVerse(destroyedBitNodeNum, flume=false) {
function loadBitVerse(destroyedBitNodeNum, flume=false, quick=false) {
// Clear the screen
const container = document.getElementById("red-pill-content");
removeChildrenFromElement(container);
@@ -221,6 +225,10 @@ function loadBitVerse(destroyedBitNodeNum, flume=false) {
}(i)); // Immediate invocation closure
}
if(quick) {
return Promise.resolve(true);
}
// 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("Our species fought back, but it was futile. The Enders had technology far beyond our own...");