mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-01 20:13:51 +01:00
Merge pull request #3847 from Snarling/QuitWorkFix
COMPANY: FIX #3837, #3830 corrected backwards logic in quitJob function
This commit is contained in:
commit
904f45f610
@ -1854,7 +1854,11 @@ export function getNextCompanyPosition(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function quitJob(this: IPlayer, company: string, _sing = false): void {
|
export function quitJob(this: IPlayer, company: string, _sing = false): void {
|
||||||
if (this.isWorking == true && this.workType !== WorkType.Company && this.companyName == company) {
|
if (
|
||||||
|
this.isWorking === true &&
|
||||||
|
[WorkType.Company, WorkType.CompanyPartTime].includes(this.workType) &&
|
||||||
|
this.companyName === company
|
||||||
|
) {
|
||||||
this.finishWork(true);
|
this.finishWork(true);
|
||||||
}
|
}
|
||||||
delete this.jobs[company];
|
delete this.jobs[company];
|
||||||
|
Loading…
Reference in New Issue
Block a user