mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 18:23:54 +01:00
only stop working if working at that company
bc you can be employed at multiple companies 😆
This commit is contained in:
parent
33d8e6d3fe
commit
4264b07d75
@ -1781,10 +1781,10 @@ export function getNextCompanyPosition(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function quitJob(this: IPlayer, company: string): void {
|
export function quitJob(this: IPlayer, company: string): void {
|
||||||
if (this.isWorking == true && this.workType == "Working for Company") {
|
if (this.isWorking == true && this.workType == "Working for Company" && this.companyName == company) {
|
||||||
this.isWorking = false;
|
this.isWorking = false;
|
||||||
}
|
|
||||||
this.companyName = "";
|
this.companyName = "";
|
||||||
|
}
|
||||||
delete this.jobs[company];
|
delete this.jobs[company];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user