mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
BUGFIX: Scripts are killed too late when prestiging (#1683)
* Scripts are killed too late when prestiging * Kill all scripts earlier
This commit is contained in:
@@ -48,6 +48,9 @@ function setInitialExpForPlayer() {
|
||||
|
||||
// Prestige by purchasing augmentation
|
||||
export function prestigeAugmentation(): void {
|
||||
// We must kill all scripts before doing anything else.
|
||||
prestigeWorkerScripts();
|
||||
|
||||
initBitNodeMultipliers();
|
||||
|
||||
// Maintain invites to factions with the 'keepOnInstall' flag, and rumors about others
|
||||
@@ -64,9 +67,6 @@ export function prestigeAugmentation(): void {
|
||||
Player.prestigeAugmentation();
|
||||
Go.prestigeAugmentation();
|
||||
|
||||
// Delete all Worker Scripts objects
|
||||
prestigeWorkerScripts();
|
||||
|
||||
const homeComp = Player.getHomeComputer();
|
||||
// Delete all servers except home computer
|
||||
prestigeAllServers();
|
||||
@@ -188,13 +188,14 @@ export function prestigeAugmentation(): void {
|
||||
|
||||
// Prestige by destroying Bit Node and gaining a Source File
|
||||
export function prestigeSourceFile(isFlume: boolean): void {
|
||||
// We must kill all scripts before doing anything else.
|
||||
prestigeWorkerScripts();
|
||||
|
||||
initBitNodeMultipliers();
|
||||
|
||||
Player.prestigeSourceFile();
|
||||
Go.prestigeSourceFile();
|
||||
|
||||
prestigeWorkerScripts(); // Delete all Worker Scripts objects
|
||||
|
||||
const homeComp = Player.getHomeComputer();
|
||||
|
||||
// Stop a Terminal action if there is one.
|
||||
|
||||
Reference in New Issue
Block a user