Fixed Bladeburner bug where exception would be thrown if Blackop was created outside of Bladeburner UI

This commit is contained in:
danielyxie 2018-05-18 22:15:58 -05:00
parent 7d149f5f7b
commit f403bd14b7
3 changed files with 9 additions and 3 deletions

@ -57509,7 +57509,9 @@ Bladeburner.prototype.completeAction = function() {
return Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_5__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].bitNodeN); return Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_5__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].bitNodeN);
} }
this.createActionAndSkillsContent(); if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Bladeburner) {
this.createActionAndSkillsContent();
}
if (this.logging.blackops) { if (this.logging.blackops) {
this.log(action.name + " successful! Gained " + Object(_utils_StringHelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(rankGain, 1) + " rank"); this.log(action.name + " successful! Gained " + Object(_utils_StringHelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(rankGain, 1) + " rank");

@ -57509,7 +57509,9 @@ Bladeburner.prototype.completeAction = function() {
return Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_5__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].bitNodeN); return Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_5__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].bitNodeN);
} }
this.createActionAndSkillsContent(); if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Bladeburner) {
this.createActionAndSkillsContent();
}
if (this.logging.blackops) { if (this.logging.blackops) {
this.log(action.name + " successful! Gained " + Object(_utils_StringHelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(rankGain, 1) + " rank"); this.log(action.name + " successful! Gained " + Object(_utils_StringHelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(rankGain, 1) + " rank");

@ -1202,7 +1202,9 @@ Bladeburner.prototype.completeAction = function() {
return hackWorldDaemon(Player.bitNodeN); return hackWorldDaemon(Player.bitNodeN);
} }
this.createActionAndSkillsContent(); if (Engine.currentPage === Engine.Page.Bladeburner) {
this.createActionAndSkillsContent();
}
if (this.logging.blackops) { if (this.logging.blackops) {
this.log(action.name + " successful! Gained " + formatNumber(rankGain, 1) + " rank"); this.log(action.name + " successful! Gained " + formatNumber(rankGain, 1) + " rank");