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

View File

@@ -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> {