From 8e4e9dabd9f4945c79e56fc128728034d40ae589 Mon Sep 17 00:00:00 2001 From: Nolshine Date: Mon, 13 Sep 2021 20:39:25 +0100 Subject: [PATCH] implement #1209 --- src/Prestige.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Prestige.js b/src/Prestige.js index edd8c667e..c57f816d9 100755 --- a/src/Prestige.js +++ b/src/Prestige.js @@ -44,8 +44,26 @@ function prestigeAugmentation() { initBitNodeMultipliers(Player); + const megaCorpFactions = [ + "ECorp", + "MegaCorp", + "Bachman & Associates", + "Blade Industries", + "NWO", + "Clarke Incorporated", + "Omnitek Incorporated", + "Four Sigma", + "KuaiGong International", + "Fulcrum Secret Technologies"]; + + let maintainMembership = Player.factions.filter(function (faction) { + return megaCorpFactions.includes(faction); + }); + Player.prestigeAugmentation(); + Player.factions = Player.factions.concat(maintainMembership); + // Now actually go to the Terminal Screen (and reset it) var mainMenu = document.getElementById("mainmenu-container"); mainMenu.style.visibility = "visible";