mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +01:00
Merge pull request #22 from danielyxie/dev
Joining one hacking faction will no longer ban you from others
This commit is contained in:
commit
c38267afce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user