fix megacorp factions not letting you join them after soft reset

This commit is contained in:
Olivier Gagnon 2021-09-16 21:19:53 -04:00
parent 195dff7c44
commit 744f3bc067
3 changed files with 15 additions and 7 deletions

@ -57,14 +57,11 @@ function prestigeAugmentation() {
"Fulcrum Secret Technologies",
];
let maintainMembership = Player.factions.filter(function (faction) {
const maintainMembership = Player.factions.filter(function (faction) {
return megaCorpFactions.includes(faction);
});
Player.prestigeAugmentation();
Player.factions = Player.factions.concat(maintainMembership);
Terminal.clear();
Engine.loadTerminalContent();
@ -120,6 +117,9 @@ function prestigeAugmentation() {
// Re-initialize things - This will update any changes
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
Player.reapplyAllSourceFiles();
initCompanies();

@ -109,12 +109,12 @@ export class Terminal implements ITerminal {
}
print(s: string): void {
this.outputHistory.push(new Output(s, "primary"));
this.append(new Output(s, "primary"));
this.hasChanges = true;
}
error(s: string): void {
this.outputHistory.push(new Output(s, "error"));
this.append(new Output(s, "error"));
this.hasChanges = true;
}
@ -418,7 +418,7 @@ export class Terminal implements ITerminal {
} // Don't print current server
const titleDashes = Array((d - 1) * 4 + 1).join("-");
if (player.hasProgram(Programs.AutoLink.name)) {
this.outputHistory.push(new Link(s.hostname));
this.append(new Link(s.hostname));
} else {
this.print(s.hostname);
}

@ -175,6 +175,14 @@ export const theme = createTheme({
},
},
},
MuiSlider: {
styleOverrides: {
valueLabel: {
color: colors.primary,
backgroundColor: colors.well,
},
},
},
MuiDrawer: {
styleOverrides: {
paper: {