#3514: Clear recently killed tab on BN end event

This commit is contained in:
Daniel Barbera 2022-05-22 02:24:17 +02:00
parent cb4fd4cf90
commit 27e9cd53e1

@ -15,6 +15,7 @@ import { updateHashManagerCapacity } from "./Hacknet/HacknetHelpers";
import { prestigeWorkerScripts } from "./NetscriptWorker"; import { prestigeWorkerScripts } from "./NetscriptWorker";
import { Player } from "./Player"; import { Player } from "./Player";
import { Router } from "./ui/GameRoot"; import { Router } from "./ui/GameRoot";
import { recentScripts } from "./Netscript/RecentScripts";
import { resetPidCounter } from "./Netscript/Pid"; import { resetPidCounter } from "./Netscript/Pid";
import { LiteratureNames } from "./Literature/data/LiteratureNames"; import { LiteratureNames } from "./Literature/data/LiteratureNames";
@ -309,5 +310,7 @@ export function prestigeSourceFile(flume: boolean): void {
// Gain int exp // Gain int exp
if (Player.sourceFileLvl(5) !== 0 && !flume) Player.gainIntelligenceExp(300); if (Player.sourceFileLvl(5) !== 0 && !flume) Player.gainIntelligenceExp(300);
// Clear recent scripts
recentScripts.splice(0, recentScripts.length);
resetPidCounter(); resetPidCounter();
} }