Merge pull request #3700 from Daniel-Barbera/dev

UI: FIX #3514 Clear recently killed tab on BN end event
This commit is contained in:
hydroflame 2022-07-21 02:19:26 -04:00 committed by GitHub
commit 10af7ddac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
} }