Merge pull request #138 from danielyxie/bugfixes

Forced Red Pill messages only happen if youve never destroyed a BitNode
This commit is contained in:
danielyxie 2017-09-25 07:57:06 -05:00 committed by GitHub
commit 8e6fb32660
2 changed files with 6 additions and 2 deletions

4
dist/bundle.js vendored

@ -26018,7 +26018,7 @@ function checkForMessagesToSend() {
redpillOwned = true;
}
if (redpill && redpillOwned) {
if (redpill && redpillOwned && __WEBPACK_IMPORTED_MODULE_2__Player_js__["a" /* Player */].sourceFiles.length === 0) {
if (!__WEBPACK_IMPORTED_MODULE_5__utils_DialogBox_js__["b" /* dialogBoxOpened */]) {
sendMessage(redpill, true);
}
@ -26039,6 +26039,8 @@ function checkForMessagesToSend() {
sendMessage(jumper4);
} else if (bitrunnersTest && !bitrunnersTest.recvd && __WEBPACK_IMPORTED_MODULE_2__Player_js__["a" /* Player */].hacking_skill >= 500) {
sendMessage(bitrunnersTest);
} else if (redpill && redpillOwned) {
sendMessage(redpill);
}
}

@ -75,7 +75,7 @@ function checkForMessagesToSend() {
redpillOwned = true;
}
if (redpill && redpillOwned) {
if (redpill && redpillOwned && Player.sourceFiles.length === 0) {
if (!dialogBoxOpened) {
sendMessage(redpill, true);
}
@ -96,6 +96,8 @@ function checkForMessagesToSend() {
sendMessage(jumper4);
} else if (bitrunnersTest && !bitrunnersTest.recvd && Player.hacking_skill >= 500) {
sendMessage(bitrunnersTest);
} else if (redpill && redpillOwned) {
sendMessage(redpill);
}
}