Merge pull request #4165 from Snarling/bladeburnerFix

SLEEVE: Can no longer use API to assign sleeves to bladeburner tasks before player is member
This commit is contained in:
hydroflame 2022-09-27 17:47:46 -03:00 committed by GitHub
commit d010705c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -424,6 +424,7 @@ export class Sleeve extends Person {
* Begin a bladeburner task * Begin a bladeburner task
*/ */
bladeburner(action: string, contract: string): boolean { bladeburner(action: string, contract: string): boolean {
if (!Player.bladeburner) return false;
switch (action) { switch (action) {
case "Field analysis": case "Field analysis":
this.startWork(new SleeveBladeburnerWork({ type: "General", name: "Field Analysis" })); this.startWork(new SleeveBladeburnerWork({ type: "General", name: "Field Analysis" }));
@ -448,7 +449,6 @@ export class Sleeve extends Person {
this.startWork(new SleeveBladeburnerWork({ type: "Contracts", name: contract })); this.startWork(new SleeveBladeburnerWork({ type: "Contracts", name: contract }));
return true; return true;
} }
return false; return false;
} }