Forced Red Pill messages only happen if youve never destroyed a BitNode

This commit is contained in:
danielyxie 2017-09-25 07:55:58 -05:00
parent 8dca410d11
commit a742d33a11
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);
}
}