Added Netburners faction - untested

This commit is contained in:
Daniel Xie 2017-05-03 12:58:09 -05:00
parent 86900c0879
commit a92e9c941d
2 changed files with 10 additions and 2 deletions

@ -459,6 +459,7 @@ initAugmentations = function() {
"This augmentation:\n" + "This augmentation:\n" +
"Increases the amount of money produced by Hacknet Nodes by 15%\n" + "Increases the amount of money produced by Hacknet Nodes by 15%\n" +
"Decreases the cost of purchasing a Hacknet Node Core by 10%"); "Decreases the cost of purchasing a Hacknet Node Core by 10%");
HacknetNodeCPUUpload.addToFactions(["Netburners"]);
AddToAugmentations(HacknetNodeCPUUpload); AddToAugmentations(HacknetNodeCPUUpload);
var HacknetNodeCacheUpload = new Augmentation("Hacknet Node Cache Architecture Neural-Upload"); var HacknetNodeCacheUpload = new Augmentation("Hacknet Node Cache Architecture Neural-Upload");
@ -469,6 +470,7 @@ initAugmentations = function() {
"This augmentation:\n " + "This augmentation:\n " +
"Increases the amount of money produced by Hacknet Nodes by 10%\n" + "Increases the amount of money produced by Hacknet Nodes by 10%\n" +
"Decreases the cost of leveling up a Hacknet Node by 10%"); "Decreases the cost of leveling up a Hacknet Node by 10%");
HacknetNodeCacheUpload.addToFactions(["Netburners"]);
AddToAugmentations(HacknetNodeCacheUpload); AddToAugmentations(HacknetNodeCacheUpload);
var HacknetNodeNICUpload = new Augmentation("HacknetNode NIC Architecture Neural-Upload"); var HacknetNodeNICUpload = new Augmentation("HacknetNode NIC Architecture Neural-Upload");
@ -479,6 +481,7 @@ initAugmentations = function() {
"This augmentation:\n" + "This augmentation:\n" +
"Increases the amount of money produced by Hacknet Nodes by 5%\n" + "Increases the amount of money produced by Hacknet Nodes by 5%\n" +
"Decreases the cost of purchasing a Hacknet Node by 5%"); "Decreases the cost of purchasing a Hacknet Node by 5%");
HacknetNodeNICUpload.addToFactions(["Netburners"]);
AddToAugmentations(HacknetNodeNICUpload); AddToAugmentations(HacknetNodeNICUpload);
var HacknetNodeKernelDNI = new Augmentation("Hacknet Node Kernel Direct-Neural Interface"); var HacknetNodeKernelDNI = new Augmentation("Hacknet Node Kernel Direct-Neural Interface");
@ -487,6 +490,7 @@ initAugmentations = function() {
"Hacknet Node. This lets the user access and manipulate the Node's kernel using the mind's\n" + "Hacknet Node. This lets the user access and manipulate the Node's kernel using the mind's\n" +
"electrochemical signals.\n\n" + "electrochemical signals.\n\n" +
"This augmentation increases the amount of money produced by Hacknet Nodes by 50%."); "This augmentation increases the amount of money produced by Hacknet Nodes by 50%.");
HacknetNodeKernelDNI.addToFactions(["Netburners"]);
AddToAugmentations(HacknetNodeKernelDNI); AddToAugmentations(HacknetNodeKernelDNI);
var HacknetNodeCoreDNI = new Augmentation("Hacknet Node Core Direct-Neural Interface"); var HacknetNodeCoreDNI = new Augmentation("Hacknet Node Core Direct-Neural Interface");
@ -495,6 +499,7 @@ initAugmentations = function() {
"to a Hacknet Node. This lets the user access and manipulate the Node's processing logic using" + "to a Hacknet Node. This lets the user access and manipulate the Node's processing logic using" +
"the mind's electrochemical signals.\n\n" + "the mind's electrochemical signals.\n\n" +
"This augmentation increases the amount of money produced by Hacknet Nodes by 75%."); "This augmentation increases the amount of money produced by Hacknet Nodes by 75%.");
HacknetNodeCoreDNI.addToFactions(["Netburners"]);
AddToAugmentations(HacknetNodeCoreDNI); AddToAugmentations(HacknetNodeCoreDNI);
//Misc augmentations //Misc augmentations

@ -384,7 +384,6 @@ PlayerObject.prototype.checkForFactionInvitations = function() {
} }
//Netburners //Netburners
/*
var netburnersFac = Factions["Netburners"]; var netburnersFac = Factions["Netburners"];
var totalHacknetRam = 0; var totalHacknetRam = 0;
var totalHacknetCores = 0; var totalHacknetCores = 0;
@ -398,7 +397,7 @@ PlayerObject.prototype.checkForFactionInvitations = function() {
this.hacking_skill >= 100 && totalHacknetRam >= 10 && this.hacking_skill >= 100 && totalHacknetRam >= 10 &&
totalHacknetCores >= 5 && totalHacknetLevels >= 100) { totalHacknetCores >= 5 && totalHacknetLevels >= 100) {
invitedFactions.push(netburnersFac); invitedFactions.push(netburnersFac);
}*/ }
//Tian Di Hui //Tian Di Hui
var tiandihuiFac = Factions["Tian Di Hui"]; var tiandihuiFac = Factions["Tian Di Hui"];
@ -707,6 +706,10 @@ displayFactionContent = function(factionName) {
case "Silhouette": case "Silhouette":
hackDiv.style.display = "inline"; hackDiv.style.display = "inline";
fieldWorkDiv.style.display = "inline"; fieldWorkDiv.style.display = "inline";
securityWorkDiv.style.display = "none";
case "Netburners":
hackDiv.style.display = "inline";
fieldWorkDiv.style.display = "none";
securityWorkDiv.style.display = "none"; securityWorkDiv.style.display = "none";
case "Tian Di Hui": case "Tian Di Hui":
hackDiv.style.display = "inline"; hackDiv.style.display = "inline";