Merge pull request #3350 from phyzical/bugfix/3348

Fix for install augmentation stale objects bug
This commit is contained in:
hydroflame 2022-04-11 20:05:46 -04:00 committed by GitHub
commit 3f4d00a8c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

@ -21,6 +21,7 @@ import {
initNeuroFluxGovernor,
initUnstableCircadianModulator,
} from "./AugmentationCreator";
import { Router } from "../ui/GameRoot";
export function AddToAugmentations(aug: Augmentation): void {
const name = aug.name;
@ -194,6 +195,7 @@ function installAugmentations(force?: boolean): boolean {
);
}
prestigeAugmentation();
Router.toTerminal();
return true;
}

@ -553,9 +553,8 @@ export const FactionInfos: IMap<FactionInfo> = {
It's too bad they won't live. But then again, who does?
<br />
<br />
Note that for this faction, reputation can only be gained through {FactionNames.Bladeburners} actions.
Completing {FactionNames.Bladeburners}
contracts/operations will increase your reputation.
Note that for this faction, reputation can only be gained through {FactionNames.Bladeburners} actions.{" "}
Completing {FactionNames.Bladeburners} contracts/operations will increase your reputation.
</>
),
[],

@ -219,7 +219,7 @@ export function NetscriptSingularity(
workerScript.running = false;
killWorkerScript(workerScript);
},
installAugmentations: function (_cbScript: unknown): boolean {
installAugmentations: function (_cbScript: unknown = ""): boolean {
updateRam("installAugmentations");
const cbScript = helper.string("installAugmentations", "cbScript", _cbScript);
helper.checkSingularityAccess("installAugmentations");

@ -491,7 +491,6 @@ export function GameRoot({ player, engine, terminal }: IProps): React.ReactEleme
}}
installAugmentationsFn={() => {
installAugmentations();
Router.toTerminal();
}}
/>
);