only stop working if working at that company

bc you can be employed at multiple companies 😆
This commit is contained in:
Hedrauta 2021-12-24 02:57:25 +01:00
parent 33d8e6d3fe
commit 4264b07d75

@ -1781,10 +1781,10 @@ export function getNextCompanyPosition(
}
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.companyName = "";
}
this.companyName = "";
delete this.jobs[company];
}