diff --git a/src/Augmentation/ui/AugmentationsRoot.tsx b/src/Augmentation/ui/AugmentationsRoot.tsx index aca34b5a3..592e9aadd 100644 --- a/src/Augmentation/ui/AugmentationsRoot.tsx +++ b/src/Augmentation/ui/AugmentationsRoot.tsx @@ -154,6 +154,7 @@ export function AugmentationsRoot(props: IProps): React.ReactElement {
- skill / experience
- every server except home
- factions and reputation +
- current work activity

You will keep: diff --git a/src/PersonObjects/Player/PlayerObjectGeneralMethods.ts b/src/PersonObjects/Player/PlayerObjectGeneralMethods.ts index be3becf89..43491819d 100644 --- a/src/PersonObjects/Player/PlayerObjectGeneralMethods.ts +++ b/src/PersonObjects/Player/PlayerObjectGeneralMethods.ts @@ -130,7 +130,7 @@ export function prestigeAugmentation(this: PlayerObject): void { this.reapplyAllAugmentations(true); this.hp.current = this.hp.max; - this.finishWork(true); + this.finishWork(true, true); } export function prestigeSourceFile(this: PlayerObject): void { diff --git a/src/PersonObjects/Player/PlayerObjectWorkMethods.ts b/src/PersonObjects/Player/PlayerObjectWorkMethods.ts index 928c5321e..a7a9ee8f4 100644 --- a/src/PersonObjects/Player/PlayerObjectWorkMethods.ts +++ b/src/PersonObjects/Player/PlayerObjectWorkMethods.ts @@ -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; } diff --git a/src/Work/ClassWork.tsx b/src/Work/ClassWork.tsx index 0a9707e3e..da3fc1e4e 100644 --- a/src/Work/ClassWork.tsx +++ b/src/Work/ClassWork.tsx @@ -111,8 +111,8 @@ export class ClassWork extends Work { return false; } - finish(): void { - if (!this.singularity) { + finish(cancelled: boolean, suppressDialog?: boolean): void { + if (!this.singularity && !suppressDialog) { dialogBoxCreate( <> After {this.getClass().youAreCurrently} for{" "} diff --git a/src/Work/CompanyWork.tsx b/src/Work/CompanyWork.tsx index 78ddd1d43..1dde82400 100644 --- a/src/Work/CompanyWork.tsx +++ b/src/Work/CompanyWork.tsx @@ -53,8 +53,8 @@ export class CompanyWork extends Work { influenceStockThroughCompanyWork(company, gains.reputation, cycles); return false; } - finish(): void { - if (!this.singularity) { + finish(cancelled: boolean, suppressDialog?: boolean): void { + if (!this.singularity && !suppressDialog) { dialogBoxCreate( <> You finished working for {this.companyName} diff --git a/src/Work/CreateProgramWork.ts b/src/Work/CreateProgramWork.ts index d57047875..8039306fd 100644 --- a/src/Work/CreateProgramWork.ts +++ b/src/Work/CreateProgramWork.ts @@ -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.", diff --git a/src/Work/FactionWork.tsx b/src/Work/FactionWork.tsx index 1b6893c35..4c8113913 100644 --- a/src/Work/FactionWork.tsx +++ b/src/Work/FactionWork.tsx @@ -62,8 +62,8 @@ export class FactionWork extends Work { return false; } - finish(): void { - if (!this.singularity) { + finish(cancelled: boolean, suppressDialog?: boolean): void { + if (!this.singularity && !suppressDialog) { dialogBoxCreate( <> You worked for {this.getFaction().name}. diff --git a/src/Work/Work.ts b/src/Work/Work.ts index 2c0e3cd17..b08c95aab 100644 --- a/src/Work/Work.ts +++ b/src/Work/Work.ts @@ -12,7 +12,7 @@ export abstract class Work { } abstract process(cycles: number): boolean; - abstract finish(cancelled: boolean): void; + abstract finish(cancelled: boolean, suppressDialog?: boolean): void; abstract APICopy(): Record; abstract toJSON(): IReviverValue; }