mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
Don't let sleeve start invalid contract
This commit is contained in:
parent
87054f6104
commit
e8c8bb76ff
@ -20,6 +20,8 @@ import { Company } from "../../Company/Company";
|
|||||||
import { CompanyPosition } from "../../Company/CompanyPosition";
|
import { CompanyPosition } from "../../Company/CompanyPosition";
|
||||||
import { CompanyPositions } from "../../Company/CompanyPositions";
|
import { CompanyPositions } from "../../Company/CompanyPositions";
|
||||||
|
|
||||||
|
import { Contracts } from "../../Bladeburner/data/Contracts";
|
||||||
|
|
||||||
import { CONSTANTS } from "../../Constants";
|
import { CONSTANTS } from "../../Constants";
|
||||||
|
|
||||||
import { Faction } from "../../Faction/Faction";
|
import { Faction } from "../../Faction/Faction";
|
||||||
@ -447,11 +449,12 @@ export class Sleeve extends Person {
|
|||||||
this.startWork(p, new SleeveSupportWork(p));
|
this.startWork(p, new SleeveSupportWork(p));
|
||||||
return true;
|
return true;
|
||||||
case "Take on contracts":
|
case "Take on contracts":
|
||||||
|
if (!Contracts[contract]) return false;
|
||||||
this.startWork(p, new SleeveBladeburnerWork({ type: "Contracts", name: contract }));
|
this.startWork(p, new SleeveBladeburnerWork({ type: "Contracts", name: contract }));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
recruitmentSuccessChance(p: IPlayer): number {
|
recruitmentSuccessChance(p: IPlayer): number {
|
||||||
|
Loading…
Reference in New Issue
Block a user