added logic to allow quitJob to be called from singularity

This commit is contained in:
phyzical
2022-04-28 19:05:56 +08:00
parent 9c805dabb8
commit 711955c112
6 changed files with 22 additions and 3 deletions

View File

@@ -1869,7 +1869,7 @@ export function getNextCompanyPosition(
return entryPosType;
}
export function quitJob(this: IPlayer, company: string): void {
export function quitJob(this: IPlayer, company: string, _sing = false): void {
if (this.isWorking == true && this.workType.includes("Working for Company") && this.companyName == company) {
this.finishWork(true);
}