From b33b5c10895df6934d1b6712d8477d07e9f550ec Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Mon, 22 May 2017 14:42:06 -0500 Subject: [PATCH] Joining one hacking faction will no longer ban you from others --- src/Faction.js | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/Faction.js b/src/Faction.js index cafa4a137..d1095a143 100644 --- a/src/Faction.js +++ b/src/Faction.js @@ -472,16 +472,7 @@ joinFaction = function(faction) { Player.factions.push(faction.name); //Determine what factions you are banned from now that you have joined this faction - if (faction.name == "BitRunners") { - Factions["The Black Hand"].isBanned = true; - Factions["NiteSec"].isBanned = true; - } else if (faction.name == "The Black Hand") { - Factions["BitRunners"].isBanned = true; - Factions["NiteSec"].isBanned = true; - } else if (faction.name == "NiteSec") { - Factions["BitRunners"].isBanned = true; - Factions["The Black Hand"].isBanned = true; - } else if (faction.name == "Chongqing") { + if (faction.name == "Chongqing") { Factions["Sector-12"].isBanned = true; Factions["Aevum"].isBanned = true; Factions["Volhaven"].isBanned = true; @@ -520,16 +511,7 @@ leaveFaction = function(faction) { } //Unban from faction - if (faction.name == "BitRunners") { - Factions["The Black Hand"].isBanned = false; - Factions["NiteSec"].isBanned = false; - } else if (faction.name == "The Black Hand") { - Factions["BitRunners"].isBanned = false; - Factions["NiteSec"].isBanned = false; - } else if (faction.name == "NiteSec") { - Factions["BitRunners"].isBanned = false; - Factions["The Black Hand"].isBanned = false; - } else if (faction.name == "Chongqing") { + if (faction.name == "Chongqing") { Factions["Sector-12"].isBanned = false; Factions["Aevum"].isBanned = false; Factions["Volhaven"].isBanned = false;