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
@@ -15,9 +15,9 @@ export function processWork(this: PlayerObject, cycles = 1): void {
this.finishWork(false);
}
}
export function finishWork(this: PlayerObject, cancelled: boolean): void {
export function finishWork(this: PlayerObject, cancelled: boolean, suppressDialog?: boolean): void {
if (this.currentWork === null) return;
this.currentWork.finish(cancelled);
this.currentWork.finish(cancelled, !!suppressDialog);
this.currentWork = null;
this.focus = false;
}