mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-28 21:12:29 +01:00
Move reseting stocks, gang, and corp to the end of the funcs. Should fix #421.
This commit is contained in:
54
src/Prestige.js
Normal file → Executable file
54
src/Prestige.js
Normal file → Executable file
@ -109,17 +109,6 @@ function prestigeAugmentation() {
|
|||||||
//Messages
|
//Messages
|
||||||
initMessages();
|
initMessages();
|
||||||
|
|
||||||
//Reset Stock market
|
|
||||||
if (Player.hasWseAccount) {
|
|
||||||
initStockMarket();
|
|
||||||
initSymbolToStockMap();
|
|
||||||
}
|
|
||||||
setStockMarketContentCreated(false);
|
|
||||||
var stockMarketList = document.getElementById("stock-market-list");
|
|
||||||
while(stockMarketList.firstChild) {
|
|
||||||
stockMarketList.removeChild(stockMarketList.firstChild);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Gang, in BitNode 2
|
//Gang, in BitNode 2
|
||||||
if (Player.bitNodeN == 2 && Player.inGang()) {
|
if (Player.bitNodeN == 2 && Player.inGang()) {
|
||||||
var faction = Factions[Player.gang.facName];
|
var faction = Factions[Player.gang.facName];
|
||||||
@ -139,6 +128,17 @@ function prestigeAugmentation() {
|
|||||||
Player.hasWseAccount = true;
|
Player.hasWseAccount = true;
|
||||||
Player.hasTixApiAccess = true;
|
Player.hasTixApiAccess = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Reset Stock market
|
||||||
|
if (Player.hasWseAccount) {
|
||||||
|
initStockMarket();
|
||||||
|
initSymbolToStockMap();
|
||||||
|
}
|
||||||
|
setStockMarketContentCreated(false);
|
||||||
|
var stockMarketList = document.getElementById("stock-market-list");
|
||||||
|
while(stockMarketList.firstChild) {
|
||||||
|
stockMarketList.removeChild(stockMarketList.firstChild);
|
||||||
|
}
|
||||||
|
|
||||||
var mainMenu = document.getElementById("mainmenu-container");
|
var mainMenu = document.getElementById("mainmenu-container");
|
||||||
mainMenu.style.visibility = "visible";
|
mainMenu.style.visibility = "visible";
|
||||||
@ -241,22 +241,6 @@ function prestigeSourceFile() {
|
|||||||
//Reinitialize Bit Node flags
|
//Reinitialize Bit Node flags
|
||||||
initSingularitySFFlags();
|
initSingularitySFFlags();
|
||||||
|
|
||||||
//Reset Stock market, gang, and corporation
|
|
||||||
if (Player.hasWseAccount) {
|
|
||||||
initStockMarket();
|
|
||||||
initSymbolToStockMap();
|
|
||||||
}
|
|
||||||
setStockMarketContentCreated(false);
|
|
||||||
var stockMarketList = document.getElementById("stock-market-list");
|
|
||||||
while(stockMarketList.firstChild) {
|
|
||||||
stockMarketList.removeChild(stockMarketList.firstChild);
|
|
||||||
}
|
|
||||||
|
|
||||||
Player.gang = null;
|
|
||||||
deleteGangDisplayContent();
|
|
||||||
Player.corporation = null;
|
|
||||||
Player.bladeburner = null;
|
|
||||||
|
|
||||||
//BitNode 3: Corporatocracy
|
//BitNode 3: Corporatocracy
|
||||||
if (Player.bitNodeN === 3) {
|
if (Player.bitNodeN === 3) {
|
||||||
Player.money = new Decimal(150e9);
|
Player.money = new Decimal(150e9);
|
||||||
@ -316,6 +300,22 @@ function prestigeSourceFile() {
|
|||||||
Player.hasTixApiAccess = true;
|
Player.hasTixApiAccess = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Reset Stock market, gang, and corporation
|
||||||
|
if (Player.hasWseAccount) {
|
||||||
|
initStockMarket();
|
||||||
|
initSymbolToStockMap();
|
||||||
|
}
|
||||||
|
setStockMarketContentCreated(false);
|
||||||
|
var stockMarketList = document.getElementById("stock-market-list");
|
||||||
|
while(stockMarketList.firstChild) {
|
||||||
|
stockMarketList.removeChild(stockMarketList.firstChild);
|
||||||
|
}
|
||||||
|
|
||||||
|
Player.gang = null;
|
||||||
|
deleteGangDisplayContent();
|
||||||
|
Player.corporation = null;
|
||||||
|
Player.bladeburner = null;
|
||||||
|
|
||||||
//Gain int exp
|
//Gain int exp
|
||||||
Player.gainIntelligenceExp(5);
|
Player.gainIntelligenceExp(5);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user