Move router.clearHistory() to prestigeAugmentation

So it triggers with soft-resets as well.
This commit is contained in:
Martin Fournier
2022-01-11 15:47:13 -05:00
parent ea2f53e3b4
commit b169406f8c
2 changed files with 2 additions and 1 deletions

View File

@ -2583,7 +2583,6 @@ function installAugmentations(): boolean {
augmentationList += aug.name + level + "<br>"; augmentationList += aug.name + level + "<br>";
} }
Player.queuedAugmentations = []; Player.queuedAugmentations = [];
Router.clearHistory();
dialogBoxCreate( dialogBoxCreate(
"You slowly drift to sleep as scientists put you under in order " + "You slowly drift to sleep as scientists put you under in order " +

View File

@ -161,6 +161,8 @@ export function prestigeAugmentation(): void {
resetPidCounter(); resetPidCounter();
ProgramsSeen.splice(0, ProgramsSeen.length); ProgramsSeen.splice(0, ProgramsSeen.length);
InvitationsSeen.splice(0, InvitationsSeen.length); InvitationsSeen.splice(0, InvitationsSeen.length);
Router.clearHistory();
} }
// Prestige by destroying Bit Node and gaining a Source File // Prestige by destroying Bit Node and gaining a Source File