mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Fixed bug where Industry Research Tree is not properly reset during prestige
This commit is contained in:
parent
f4e0eaeffb
commit
ca002e6e53
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -123,6 +123,19 @@ export let IndustryResearchTrees: IIndustryMap<ResearchTree> = {
|
|||||||
RealEstate: getBaseResearchTreeCopy(),
|
RealEstate: getBaseResearchTreeCopy(),
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loadIndustryResearchTrees(saveString: string): void {
|
export function resetIndustryResearchTrees() {
|
||||||
IndustryResearchTrees = JSON.parse(saveString, Reviver);
|
IndustryResearchTrees.Energy = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Utilities = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Agriculture = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Fishing = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Mining = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Food = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Tobacco = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Chemical = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Pharmaceutical = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Computer = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Robotics = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Software = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.Healthcare = getBaseResearchTreeCopy();
|
||||||
|
IndustryResearchTrees.RealEstate = getBaseResearchTreeCopy();
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ import {initBitNodeMultipliers} from "./BitNode";
|
|||||||
import {Bladeburner} from "./Bladeburner";
|
import {Bladeburner} from "./Bladeburner";
|
||||||
import {writeCinematicText} from "./CinematicText";
|
import {writeCinematicText} from "./CinematicText";
|
||||||
import {Companies, initCompanies} from "./Company/Companies";
|
import {Companies, initCompanies} from "./Company/Companies";
|
||||||
|
import { resetIndustryResearchTrees } from "./Corporation/IndustryData";
|
||||||
import { Programs } from "./Programs/Programs";
|
import { Programs } from "./Programs/Programs";
|
||||||
import {Engine} from "./engine";
|
import {Engine} from "./engine";
|
||||||
import { Faction } from "./Faction/Faction";
|
import { Faction } from "./Faction/Faction";
|
||||||
@ -320,9 +321,10 @@ function prestigeSourceFile() {
|
|||||||
|
|
||||||
if (Player.inGang()) { Player.gang.clearUI(); }
|
if (Player.inGang()) { Player.gang.clearUI(); }
|
||||||
Player.gang = null;
|
Player.gang = null;
|
||||||
Player.corporation = null;
|
Player.corporation = null; resetIndustryResearchTrees();
|
||||||
Player.bladeburner = null;
|
Player.bladeburner = null;
|
||||||
|
|
||||||
|
|
||||||
// Refresh Main Menu (the 'World' menu, specifically)
|
// Refresh Main Menu (the 'World' menu, specifically)
|
||||||
document.getElementById("world-menu-header").click();
|
document.getElementById("world-menu-header").click();
|
||||||
document.getElementById("world-menu-header").click();
|
document.getElementById("world-menu-header").click();
|
||||||
|
@ -2,8 +2,6 @@ import {loadAliases, loadGlobalAliases,
|
|||||||
Aliases, GlobalAliases} from "./Alias";
|
Aliases, GlobalAliases} from "./Alias";
|
||||||
import {Companies, loadCompanies} from "./Company/Companies";
|
import {Companies, loadCompanies} from "./Company/Companies";
|
||||||
import {CompanyPosition} from "./Company/CompanyPosition";
|
import {CompanyPosition} from "./Company/CompanyPosition";
|
||||||
import { IndustryResearchTrees,
|
|
||||||
loadIndustryResearchTrees } from "./Corporation/IndustryData";
|
|
||||||
import {CONSTANTS} from "./Constants";
|
import {CONSTANTS} from "./Constants";
|
||||||
import {Engine} from "./engine";
|
import {Engine} from "./engine";
|
||||||
import { Factions,
|
import { Factions,
|
||||||
|
Loading…
Reference in New Issue
Block a user