Add ilkecan fix for part time work

This commit is contained in:
Snarling
2022-06-29 15:03:34 -04:00
parent 7acb83ba77
commit 9cb58898f2

View File

@@ -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];