From 27e9cd53e1958f059c17e9b6b2227497d2bcaf91 Mon Sep 17 00:00:00 2001 From: Daniel Barbera <87785383+xRalic@users.noreply.github.com> Date: Sun, 22 May 2022 02:24:17 +0200 Subject: [PATCH] #3514: Clear recently killed tab on BN end event --- src/Prestige.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Prestige.ts b/src/Prestige.ts index a643018af..165966f5b 100755 --- a/src/Prestige.ts +++ b/src/Prestige.ts @@ -15,6 +15,7 @@ import { updateHashManagerCapacity } from "./Hacknet/HacknetHelpers"; import { prestigeWorkerScripts } from "./NetscriptWorker"; import { Player } from "./Player"; import { Router } from "./ui/GameRoot"; +import { recentScripts } from "./Netscript/RecentScripts"; import { resetPidCounter } from "./Netscript/Pid"; import { LiteratureNames } from "./Literature/data/LiteratureNames"; @@ -309,5 +310,7 @@ export function prestigeSourceFile(flume: boolean): void { // Gain int exp if (Player.sourceFileLvl(5) !== 0 && !flume) Player.gainIntelligenceExp(300); + // Clear recent scripts + recentScripts.splice(0, recentScripts.length); resetPidCounter(); }