mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
fix megacorp factions not letting you join them after soft reset
This commit is contained in:
parent
195dff7c44
commit
744f3bc067
@ -57,14 +57,11 @@ function prestigeAugmentation() {
|
|||||||
"Fulcrum Secret Technologies",
|
"Fulcrum Secret Technologies",
|
||||||
];
|
];
|
||||||
|
|
||||||
let maintainMembership = Player.factions.filter(function (faction) {
|
const maintainMembership = Player.factions.filter(function (faction) {
|
||||||
return megaCorpFactions.includes(faction);
|
return megaCorpFactions.includes(faction);
|
||||||
});
|
});
|
||||||
|
|
||||||
Player.prestigeAugmentation();
|
Player.prestigeAugmentation();
|
||||||
|
|
||||||
Player.factions = Player.factions.concat(maintainMembership);
|
|
||||||
|
|
||||||
Terminal.clear();
|
Terminal.clear();
|
||||||
Engine.loadTerminalContent();
|
Engine.loadTerminalContent();
|
||||||
|
|
||||||
@ -120,6 +117,9 @@ function prestigeAugmentation() {
|
|||||||
|
|
||||||
// Re-initialize things - This will update any changes
|
// Re-initialize things - This will update any changes
|
||||||
initFactions(); // Factions must be initialized before augmentations
|
initFactions(); // Factions must be initialized before augmentations
|
||||||
|
|
||||||
|
Player.factions = Player.factions.concat(maintainMembership);
|
||||||
|
Player.factions.map((f) => (Factions[f].isMember = true));
|
||||||
initAugmentations(); // Calls reapplyAllAugmentations() and resets Player multipliers
|
initAugmentations(); // Calls reapplyAllAugmentations() and resets Player multipliers
|
||||||
Player.reapplyAllSourceFiles();
|
Player.reapplyAllSourceFiles();
|
||||||
initCompanies();
|
initCompanies();
|
||||||
|
@ -109,12 +109,12 @@ export class Terminal implements ITerminal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
print(s: string): void {
|
print(s: string): void {
|
||||||
this.outputHistory.push(new Output(s, "primary"));
|
this.append(new Output(s, "primary"));
|
||||||
this.hasChanges = true;
|
this.hasChanges = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
error(s: string): void {
|
error(s: string): void {
|
||||||
this.outputHistory.push(new Output(s, "error"));
|
this.append(new Output(s, "error"));
|
||||||
this.hasChanges = true;
|
this.hasChanges = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,7 +418,7 @@ export class Terminal implements ITerminal {
|
|||||||
} // Don't print current server
|
} // Don't print current server
|
||||||
const titleDashes = Array((d - 1) * 4 + 1).join("-");
|
const titleDashes = Array((d - 1) * 4 + 1).join("-");
|
||||||
if (player.hasProgram(Programs.AutoLink.name)) {
|
if (player.hasProgram(Programs.AutoLink.name)) {
|
||||||
this.outputHistory.push(new Link(s.hostname));
|
this.append(new Link(s.hostname));
|
||||||
} else {
|
} else {
|
||||||
this.print(s.hostname);
|
this.print(s.hostname);
|
||||||
}
|
}
|
||||||
|
@ -175,6 +175,14 @@ export const theme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
MuiSlider: {
|
||||||
|
styleOverrides: {
|
||||||
|
valueLabel: {
|
||||||
|
color: colors.primary,
|
||||||
|
backgroundColor: colors.well,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
MuiDrawer: {
|
MuiDrawer: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
paper: {
|
paper: {
|
||||||
|
Loading…
Reference in New Issue
Block a user