Merge pull request #4023 from Snarling/companyWorkSingFix

WORK: Add singularity check for finishing company work
This commit is contained in:
hydroflame 2022-08-23 12:05:44 -03:00 committed by GitHub
commit 7269919aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,13 +51,15 @@ export class CompanyWork extends Work {
return false;
}
finish(): void {
dialogBoxCreate(
<>
You finished working for {this.companyName}
<br />
You have <Reputation reputation={this.getCompany().playerReputation} /> reputation with them.
</>,
);
if (!this.singularity) {
dialogBoxCreate(
<>
You finished working for {this.companyName}
<br />
You have <Reputation reputation={this.getCompany().playerReputation} /> reputation with them.
</>,
);
}
}
APICopy(): Record<string, unknown> {