Merge pull request #3698 from borisflagell/#3685

BLADEBURNER: FIX #3685 Error being thrown when finishing a BlackOps
This commit is contained in:
hydroflame 2022-05-22 20:37:30 -04:00 committed by GitHub
commit 9f73f9b392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1677,11 +1677,11 @@ export class Bladeburner implements IBladeburner {
this.actionTimeOverflow = 0;
if (this.actionTimeCurrent >= this.actionTimeToComplete) {
this.actionTimeOverflow = this.actionTimeCurrent - this.actionTimeToComplete;
const action = this.getActionObject(this.action);
const retValue = this.completeAction(player, player, this.action);
player.gainMoney(retValue.money, "bladeburner");
player.gainStats(retValue);
// Operation Daedalus
const action = this.getActionObject(this.action);
if (action == null) {
throw new Error("Failed to get BlackOperation Object for: " + this.action.name);
} else if (action.name === BlackOperationNames.OperationDaedalus && this.blackops[action.name]) {