Added Silhouette Faction. Needs to add Augs for it

This commit is contained in:
Daniel Xie 2017-04-19 16:54:01 -05:00
parent 51d351f894
commit fd70bf259b
2 changed files with 17 additions and 1 deletions

@ -131,6 +131,9 @@ initFactions = function() {
var TheSyndicate = new Faction("The Syndicate");
TheSyndicate.setInfo(FactionInfo.TheSyndicateInfo);
AddToFactions(TheSyndicate);
var Silhouette = new Faction("Silhouette");
Silhouette.setInfo(FactionInfo.SilhouetteInfo);
AddToFactions(Silhouette);
//Earlygame factions - factions the player will prestige with early on that don't
//belong in other categories
@ -367,6 +370,15 @@ PlayerObject.prototype.checkForFactionInvitations = function() {
invitedFactions.push(thesyndicateFac);
}
var silhouetteFac = Factions["Silhouette"];
if (silhouetteFac.isBanned == false && silhouetteFac.isMember == false &&
(this.companyPosition.positionName == CompanyPositions.CTO.positionName ||
this.companyPosition.positionName == CompanyPositions.CFO.positionName ||
this.companyPosition.positionName == CompanyPositions.CEO.positionName) &&
this.money >= 15000000) {
invitedFactions.push(silhouetteFac);
}
//Tian Di Hui
var tiandihuiFac = Factions["Tian Di Hui"];
if (tiandihuiFac.isBanned == false && tiandihuiFac.isMember == false &&
@ -625,6 +637,10 @@ displayFactionContent = function(factionName) {
fieldWorkDiv.style.display = "inline";
securityWorkDiv.style.display = "inline";
break;
case "Silhouette":
hackDiv.style.display = "inline";
fieldWorkDiv.style.display = "inline";
securityWorkDiv.style.display = "none";
case "Tian Di Hui":
hackDiv.style.display = "inline";
fieldWorkDiv.style.display = "none";

@ -111,7 +111,7 @@ FactionInfo = {
TheSyndicateInfo: "TODO",
Silhouette: "Corporations are so big, you don't even know who you're working for. That's terror. Terror built into the system.",
SilhouetteInfo: "Corporations are so big, you don't even know who you're working for. That's terror. Terror built into the system.",
//Earlygame factions - factions the player will prestige with early on that don't
//belong in other categories