Add singularity check for finishing company work

This commit is contained in:
Snarling 2022-08-22 20:16:45 -04:00
parent 853e9c2e4f
commit c626377904

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