UI: Suppress confusing reputation-earned dialog on augment install (#739)

This commit is contained in:
Michael Ficocelli
2023-08-28 15:12:13 -04:00
committed by GitHub
parent 9a0d688909
commit 62058a7f78
8 changed files with 13 additions and 12 deletions
+2 -2
View File
@@ -73,14 +73,14 @@ export class CreateProgramWork extends Work {
}
return false;
}
finish(cancelled: boolean): void {
finish(cancelled: boolean, suppressDialog?: boolean): void {
const programName = asProgramFilePath(this.programName);
if (!cancelled) {
//Complete case
Player.gainIntelligenceExp(
(CONSTANTS.IntelligenceProgramBaseExpGain * this.cyclesWorked * CONSTANTS.MilliPerCycle) / 1000,
);
if (!this.singularity) {
if (!this.singularity && !suppressDialog) {
const lines = [
`You've finished creating ${programName}!`,
"The new program can be found on your home computer.",