mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +02:00
UI: Suppress confusing reputation-earned dialog on augment install (#739)
This commit is contained in:
committed by
GitHub
parent
9a0d688909
commit
62058a7f78
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user