Added Augmentations to their faction

This commit is contained in:
Daniel Xie 2017-02-09 12:35:28 -06:00
parent b25d685381
commit 7e8e88db3e
2 changed files with 128 additions and 39 deletions

@ -3,12 +3,23 @@ function Augmentation(name) {
this.name = name; this.name = name;
this.info = ""; this.info = "";
this.owned = false; //Whether the player has it (you can only have each augmentation once) this.owned = false; //Whether the player has it (you can only have each augmentation once)
this.description = "";
} }
Augmentation.prototype.setDescription(desc) { Augmentation.prototype.setInfo(inf) {
this.description = desc; this.info = inf;
} }
//Takes in an array of faction names and adds this augmentation to all of those factions
Augmentation.prototype.addToFactions(factionList) {
for (var i = 0; i < factionList.length; ++i) {
var faction = Factions[factionList[i]];
if (faction = null) {
console.log("Error: Could not find faction with this name");
}
faction.augmentations.push(this.name);
}
}
Augmentation.prototype.toJSON = function() { Augmentation.prototype.toJSON = function() {
return Generic_toJSON("Augmentation", this); return Generic_toJSON("Augmentation", this);
} }
@ -34,130 +45,197 @@ AddToAugmentations = function(aug) {
initAugmentations = function() { initAugmentations = function() {
//Combat stat augmentations //Combat stat augmentations
var Targeting1 = new Augmentation("Augmented Targeting I"); var Targeting1 = new Augmentation("Augmented Targeting I");
Targeting1.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
AddToAugmentations(Targeting1); AddToAugmentations(Targeting1);
var Targeting2 = new Augmentation("Augmented Targeting II"); var Targeting2 = new Augmentation("Augmented Targeting II");
Targeting2.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
AddToAugmentations(Targeting2); AddToAugmentations(Targeting2);
var Targeting3 = new Augmentation("Augmented Targeting III"); var Targeting3 = new Augmentation("Augmented Targeting III");
Targeting3.addToFactions("The Dark Army", "The Syndicate", "OmniTek Incorporated",
"KuaiGong International", "Blade Industries", "The Covenant");
AddToAugmentations(Targeting3); AddToAugmentations(Targeting3);
var SyntheticHeart = new Augmentation("Synthetic Heart"); var SyntheticHeart = new Augmentation("Synthetic Heart");
SyntheticHeart.addToFactions("KuaiGong International", "Fulcrum Secret Technologies", "Speakers for the Dead",
"NWO", "The Covenant", "Daedalus", "Illuminati");
AddToAugmentations(SyntheticHeart); AddToAugmentations(SyntheticHeart);
var SynfibrilMuscle = new Augmentation("Synfibril Muscle"); var SynfibrilMuscle = new Augmentation("Synfibril Muscle");
SynfibrilMuscle.addToFactions("KuaiGong International", "Fulcrum Secret Technologies", "Speakers for the Dead",
"NWO", "The Covenant", "Daedalus", "Illuminati", "Blade Industries");
AddToAugmentations(SynfibrilMuscle) AddToAugmentations(SynfibrilMuscle)
var CombatRib1 = new Augmentation("Combat Rib I"); var CombatRib1 = new Augmentation("Combat Rib I");
CombatRib1.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
AddToAugmentations(CombatRib1); AddToAugmentations(CombatRib1);
var CombatRib2 = new Augmentation("Combat Rib II"); var CombatRib2 = new Augmentation("Combat Rib II");
CombatRib2.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
AddToAugmentations(CombatRib2); AddToAugmentations(CombatRib2);
var CombatRib3 = new Augmentation("Combat Rib III"); var CombatRib3 = new Augmentation("Combat Rib III");
CombatRib3.addToFactions("The Dark Army", "The Syndicate", "OmniTek Incorporated",
"KuaiGong International", "Blade Industries", "The Covenant");
AddToAugmentations(CombatRib3); AddToAugmentations(CombatRib3);
var NanofiberWeave = new Augmentation("Nanofiber Weave"); var NanofiberWeave = new Augmentation("Nanofiber Weave");
NanofiberWeave.addToFactions("Tian Di Hui", "The Syndicate", "The Dark Army", "Speakers for the Dead",
"Blade Industries", "Fulcrum Secret Technologies", "OmniTek Incorporated");
AddToAugmentations(NanofiberWeave); AddToAugmentations(NanofiberWeave);
var SubdermalArmor = new Augmentation("NEMEAN Subdermal Weave"); var SubdermalArmor = new Augmentation("NEMEAN Subdermal Weave");
SubdermalArmor.addToFactions("The Syndicate", "Fulcrum Secret Technologies", "Illuminati", "Daedalus",
"The Covenant");
AddToAugmentations(SubdermalArmor); AddToAugmentations(SubdermalArmor);
var WiredReflexes = new Augmentation("Wired Reflexes"); var WiredReflexes = new Augmentation("Wired Reflexes");
WiredReflexes.addToFactions("Tian Di Hui", "Sector-12", "Volhaven", "Aevum", "Ishima",
"The Syndicate", "The Dark Army", "Speakers for the Dead");
AddToAugmentations(WiredReflexes); AddToAugmentations(WiredReflexes);
var GrapheneBoneLacings = new Augmentation("Graphene Bone Lacings"); var GrapheneBoneLacings = new Augmentation("Graphene Bone Lacings");
GrapheneBoneLacings.addToFactions("Fulcrum Secret Technologies", "The Covenant");
AddToAugmentations(GrapheneBoneLacings); AddToAugmentations(GrapheneBoneLacings);
var BionicSpine = new Augmentation("Bionic Spine"); var BionicSpine = new Augmentation("Bionic Spine");
BionicSpine.addToFactions("Speakers for the Dead", "The Syndicate", "KuaiGong International",
"OmniTek Incorporated", "Blade Industries");
AddToAugmentations(BionicSpine); AddToAugmentations(BionicSpine);
var GrapheneBionicSpine = new Augmentation("Graphene Bionic Spine Upgrade"); var GrapheneBionicSpine = new Augmentation("Graphene Bionic Spine Upgrade");
GrapheneBionicSpine.addToFactions("Fulcrum Secret Technologies", "ECorp");
AddToAugmentations(GrapheneBionicSpine); AddToAugmentations(GrapheneBionicSpine);
var BionicLegs = new Augmentation("Bionic Legs"); var BionicLegs = new Augmentation("Bionic Legs");
BionicLegs.addToFactions("Speakers for the Dead", "The Syndicate", "KuaiGong International",
"OmniTek Incorporated", "Blade Industries");
AddToAugmentations(BionicLegs); AddToAugmentations(BionicLegs);
var GrapheneBionicLegs = new Augmentation("PC Direct-Neural Interface NeuroNet Injector"); var GrapheneBionicLegs = new Augmentation("Graphene Bionic Legs Upgrade");
GrapheneBionicLegs.addToFactions("MegaCorp", "ECorp", "Fulcrum Secret Technologies");
AddToAugmentations(GrapheneBionicLegs); AddToAugmentations(GrapheneBionicLegs);
//Labor stat augmentations //Labor stat augmentations
var SpeechProcessor = new Augmentation("Speech Processor Implant"); //Cochlear imlant? var SpeechProcessor = new Augmentation("Speech Processor Implant"); //Cochlear imlant?
SpeechProcessor.addToFactions("Tian Di Hui", "Chongqing", "Sector-12", "New Tokyo", "Aevum",
"Ishima", "Volhaven");
AddToAugmentations(SpeechProcessor); AddToAugmentations(SpeechProcessor);
var EnhancedSocialInteractionImplant = new Augmentation("Enhanced Social Interaction Implant"); var EnhancedSocialInteractionImplant = new Augmentation("Enhanced Social Interaction Implant");
EnhancedSocialInteractionImplant.addToFactions("Bachman & Associates", "NWO", "Clarke Incorporated",
"OmniTek Incorporated", "Four Sigma");
AddToAugmentations(EnhancedSocialInteractionImplant); AddToAugmentations(EnhancedSocialInteractionImplant);
//Hacking augmentations //Hacking augmentations
var ArtificialBioNeuralNetwork = new Augmentation("Artificial Bio-neural Network Implant"); var ArtificialBioNeuralNetwork = new Augmentation("Artificial Bio-neural Network Implant");
ArtificialBioNeuralNetwork.addToFactions("BitRunners", "Fulcrum Secret Technologies");
AddToAugmentations(ArtificialBioNeuralNetwork); AddToAugmentations(ArtificialBioNeuralNetwork);
var ArtificialSynapticPotentiation = new Augmentation("Artificial Synaptic Potentiation"); var ArtificialSynapticPotentiation = new Augmentation("Artificial Synaptic Potentiation");
ArtificialSynapticPotentiation.addToFactions("The Black Hand", "NiteSec");
AddToAugmentations(ArtificialSynapticPotentiation); AddToAugmentations(ArtificialSynapticPotentiation);
var EnhancedMyelinSheathing = new Augmentation("Enhanced Myelin Sheating"); var EnhancedMyelinSheathing = new Augmentation("Enhanced Myelin Sheating");
EnhancedMyelinSheating.addToFactions("Fulcrum Secret Technologies", "BitRunners", "The Black Hand");
AddToAugmentations(EnhancedMyelinSheathing); AddToAugmentations(EnhancedMyelinSheathing);
var SynapticEnhancement = new Augmentation("Synaptic Enhancement Implant"); var SynapticEnhancement = new Augmentation("Synaptic Enhancement Implant");
SynapticEnhancement.addToFactions("CyberSec");
AddToAugmentations(SynapticEnhancement); AddToAugmentations(SynapticEnhancement);
var NeuralRetentionEnhancement = new Augmentation("Neural-Retention Enhancement"); var NeuralRetentionEnhancement = new Augmentation("Neural-Retention Enhancement");
NeuralRetentionEnhancement.addToFactions("CyberSec", "NiteSec");
AddToAugmentations(NeuralRetentionEnhancement); AddToAugmentations(NeuralRetentionEnhancement);
var DataJack = new Augmentation("DataJack"); var DataJack = new Augmentation("DataJack");
DataJack.addToFactions("BitRunners", "The Black Hand", "NiteSec", "Chongqing", "New Tokyo");
AddToAugmentations(DataJack); AddToAugmentations(DataJack);
var ENM = new Augmentation("Embedded Netburner Module"); var ENM = new Augmentation("Embedded Netburner Module");
ENM.addToFactions("BitRunners", "The Black Hand", "NiteSec", "ECorp", "MegaCorp",
"Fulcrum Secret Technologies", "NWO", "Blade Industries");
AddToAugmentations(ENM); AddToAugmentations(ENM);
var ENMCore = new Augmentation("Embedded Netburner Module Core Implant"); var ENMCore = new Augmentation("Embedded Netburner Module Core Implant");
ENMCore.addToFactions("BitRunners", "The Black Hand", "NiteSec", "ECorp", "MegaCorp",
"Fulcrum Secret Technologies", "NWO", "Blade Industries");
AddToAugmentations(ENMCore); AddToAugmentations(ENMCore);
var ENMCoreV2 = new Augmentation("Embedded Netburner Module Core V2 Upgrade"); var ENMCoreV2 = new Augmentation("Embedded Netburner Module Core V2 Upgrade");
ENMCoreV2.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
"Blade Industries", "OmniTek Incorporated", "KuaiGong International");
AddToAugmentations(ENMCoreV2); AddToAugmentations(ENMCoreV2);
var ENMCoreV3 = new Augmentation("Embedded Netburner Module Core V3 Upgrade"); var ENMCoreV3 = new Augmentation("Embedded Netburner Module Core V3 Upgrade");
ENMCoreV3.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
"Daedalus", "The Covenant", "Illuminati");
AddToAugmentations(ENMCoreV3); AddToAugmentations(ENMCoreV3);
var ENMAnalyzeEngine = new Augmentation("Embedded Netburner Module Analyze Engine"); var ENMAnalyzeEngine = new Augmentation("Embedded Netburner Module Analyze Engine");
ENMCoreV3.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
"Daedalus", "The Covenant", "Illuminati");
AddToAugmentations(ENMAnalyzeEngine); AddToAugmentations(ENMAnalyzeEngine);
var ENMDMA = new Augmentation("Embedded Netburner Module Direct Memory Access Upgrade"); var ENMDMA = new Augmentation("Embedded Netburner Module Direct Memory Access Upgrade");
ENMCoreV3.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
"Daedalus", "The Covenant", "Illuminati");
AddToAugmentations(ENMDMA); AddToAugmentations(ENMDMA);
var Neuralstimulator = new Augmentation("Neuralstimulator"); var Neuralstimulator = new Augmentation("Neuralstimulator");
Neuralstimulator.addToFactions("The Black Hand", "Chongqing", "Sector-12", "New Tokyo", "Aevum",
"Ishima", "Volhaven", "Bachman & Associates", "Clarke Incorporated",
"Four Sigma");
AddToAugmentations(Neuralstimulator); AddToAugmentations(Neuralstimulator);
var PCDNINeuralNetwork = new Augmentation("PC Direct-Neural Interface NeuroNet Injector");
AddToAugmentations(PCDNINeuralNetwork);
//Work Augmentations //Work Augmentations
var NuoptimalInjectorImplant = new Augmentation("Nuoptimal Nootropic Injector Implant"); var NuoptimalInjectorImplant = new Augmentation("Nuoptimal Nootropic Injector Implant");
NuoptimalInjectorImplant.addToFactions("Tian Di Hui", "Volhaven", "New Tokyo", "Chongqing", "Ishima",
"Clarke Incorporated", "Four Sigma", "Bachman & Associates");
AddToAugmentations(NuoptimalInjectorImplant); AddToAugmentations(NuoptimalInjectorImplant);
var SpeechEnhancement = new Augmentation("Speech Enhancement"); var SpeechEnhancement = new Augmentation("Speech Enhancement");
SpeechEnhancement.addToFactions("Tian Di Hui", "Speakers for the Dead", "Four Sigma", "KuaiGong International",
"Clarke Incorporated", "Four Sigma", "Bachman & Associates");
AddToAugmentations(SpeechEnhancement); AddToAugmentations(SpeechEnhancement);
var FocusWire = new Augmentation("FocusWire"); //Stops procrastination var FocusWire = new Augmentation("FocusWire"); //Stops procrastination
FocusWire.addToFactions("Bachman & Associates", "Clarke Incorporated", "Four Sigma", "KuaiGong International");
AddToAugmentations(FocusWire) AddToAugmentations(FocusWire)
var PCDNI = new Augmentation("PC Direct-Neural Interface"); var PCDNI = new Augmentation("PC Direct-Neural Interface");
PCDNI.addToFactions("Four Sigma", "OmniTek Incorporated", "ECorp", "Blade Industries");
AddToAugmentations(PCDNI); AddToAugmentations(PCDNI);
var PCDNIOptimizer = new Augmentation("PC Direct-Neural Interface Optimization Submodule"); var PCDNIOptimizer = new Augmentation("PC Direct-Neural Interface Optimization Submodule");
PCDNI.addToFactions("Fulcrum Secret Technologies", "ECorp", "Blade Industries");
AddToAugmentations(PCDNIOptimizer); AddToAugmentations(PCDNIOptimizer);
var PCDNINeuralNetwork = new Augmentation("PC Direct-Neural Interface NeuroNet Injector");
PCDNI.addToFactions("Fulcrum Secret Technologies");
AddToAugmentations(PCDNINeuralNetwork);
//Misc augmentations //Misc augmentations
var Neurotrainer1 = new Augmentation("Neurotrainer I"); var Neurotrainer1 = new Augmentation("Neurotrainer I");
Neurotrainer1.addToFactions("CyberSec");
AddToAugmentations(Neurotrainer1); AddToAugmentations(Neurotrainer1);
var Neurotrainer2 = new Augmentation("Neurotrainer II"); var Neurotrainer2 = new Augmentation("Neurotrainer II");
Neurotrainer2.addToFactions("BitRunners", "NiteSec");
AddToAugmentations(Neurotrainer2); AddToAugmentations(Neurotrainer2);
var Neurotrainer3 = new Augmentation("Neurotrainer III"); var Neurotrainer3 = new Augmentation("Neurotrainer III");
Neurotrainer3.addToFactions("NWO", "Four Sigma");
AddToAugmentations(Neurotrainer3); AddToAugmentations(Neurotrainer3);
var Hypersight = new Augmentation("HyperSight Corneal Implant"); var Hypersight = new Augmentation("HyperSight Corneal Implant");
Hypersight.addToFactions("Blade Industries", "KuaiGong International");
AddToAugmentations(Hypersight); AddToAugmentations(Hypersight);
} }
@ -174,10 +252,10 @@ applyAugmentation = function(aug) {
//Dex 5% //Dex 5%
break; break;
case "Synthetic Heart": case "Synthetic Heart":
//Agi and Str 10% //Agi and Str - HIGH LEVEL
break; break;
case "Synfibril Muscle": case "Synfibril Muscle":
//Strength and Defense 10% //Strength and Defense - MED HIGH LEVEL
break; break;
case "Combat Rib I": case "Combat Rib I":
//Str and Defense 5% //Str and Defense 5%
@ -187,78 +265,79 @@ applyAugmentation = function(aug) {
case "Combat Rib III": case "Combat Rib III":
break; break;
case "Nanofiber Weave": case "Nanofiber Weave":
//str + Defense 10% //str + Defense - MED LEVEL
break; break;
case "NEMEAN Subdermal Weave": case "NEMEAN Subdermal Weave":
//Defense 10% //Defense - HIGH LEVEL
break; break;
case "Wired Reflexes": case "Wired Reflexes":
//Agility 10% //Agility - Low level
break; break;
case "Graphene Bone Lacings": case "Graphene Bone Lacings":
//Strength defense 15% //Strength defense - HIGH level
break; break;
case "Bionic Spine": case "Bionic Spine":
//Everything 3%? //Everything - Medium level
break; break;
case "Graphene Bionic Spine Upgrade": case "Graphene Bionic Spine Upgrade":
//Everything 5% //Everything - high level
break; break;
case "Bionic Legs": case "Bionic Legs":
//Agi //Agi - Med level
break;
case "PC Direct-Neural Interface NeuroNet Injector":
//Agi
break; break;
case "Graphene Bionic Legs Upgrade":
//Agi - HIGH level
break;
//Labor stats augmentations //Labor stats augmentations
case "Enhanced Social Interaction Implant": case "Enhanced Social Interaction Implant":
//Charisma 10% //Charisma 10% - Med high level
break; break;
case "Speech Processor Implant": case "Speech Processor Implant":
//Charisma 5% //Charisma 5% - Med level
break; break;
//Hacking augmentations //Hacking augmentations
case "Artificial Bio-neural Network Implant": case "Artificial Bio-neural Network Implant":
//Hacking speed and money gained 10% //Hacking speed and money gained - MED Level
break; break;
case "Artificial Synaptic Potentiation": case "Artificial Synaptic Potentiation":
//Hacking speed 15% //Hacking speed - MED Level
break; break;
case "Enhanced Myelin Sheating": case "Enhanced Myelin Sheating":
//Hacking speed and exp gain 10% //Hacking speed and exp gain - MED Level
break; break;
case "Synaptic Enhancement Implant": case "Synaptic Enhancement Implant":
//Hacking speed 5% //Hacking speed - LOw level
break; break;
case "Neural-Retention Enhancement": case "Neural-Retention Enhancement":
//Gain 10% more hacking exp //Gain 10% more hacking exp - med level
break; break;
case "DataJack": case "DataJack":
//5% more money from hacking //5% more money from hacking - med low level
break; break;
case "Embedded Netburner Module": case "Embedded Netburner Module":
//Doesn't give anyhting itself but allows user to install //Doesn't give anyhting itself but allows user to install
//ENM upgrades in the future, which are very powerful //ENM upgrades in the future, which are very powerful
//Med level
break; break;
case "Embedded Netburner Module Core Implant": case "Embedded Netburner Module Core Implant":
//Hacking speed, money gained, and exp gained 5% //Hacking speed, money gained, and exp gained - Med level
break; break;
case "Embedded Netburner Module Core V2 Upgrade": case "Embedded Netburner Module Core V2 Upgrade":
//Hacking speed, money gained, and exp gained 10% //Hacking speed, money gained, and exp gained - Med High Level
break; break;
case "Embedded Netburner Module Core V3 Upgrade": case "Embedded Netburner Module Core V3 Upgrade":
//Hacking speed, money gained, and exp gained 15% //Hacking speed, money gained, and exp gained - High level
break; break;
case "Embedded Netburner Module Analyze Engine": case "Embedded Netburner Module Analyze Engine":
//Hacking speed 20% //Hacking speed 20% - High level
break; break;
case "Embedded Netburner Module Direct Memory Access Upgrade": case "Embedded Netburner Module Direct Memory Access Upgrade":
//Money hacked 20% //Money hacked 20% - High level
break; break;
case "Neuralstimulator": case "Neuralstimulator":
//Hacking speed, money gained, and exp gained 10% //Hacking speed, money gained, and exp gained - Med level
break; break;
case "PC Direct-Neural Interface NeuroNet Injector": case "PC Direct-Neural Interface NeuroNet Injector":
//Hacking speed increases //Hacking speed increases
@ -266,33 +345,39 @@ applyAugmentation = function(aug) {
//Work augmentations //Work augmentations
case "Nuoptimal Nootropic Injector Implant": case "Nuoptimal Nootropic Injector Implant":
//Increase in gains for software, IT, and Business jobs //Increase in gains for software, IT, and Business jobs - Low Med Level
break; break;
case "Speech Enhancement": case "Speech Enhancement":
//Increase in business jobs and reputation gained //Increase in business jobs and reputation gained - Low Level
break; break;
case "FocusWire": case "FocusWire":
//Increase in all gains and reputation gained //Increase in all gains and reputation gained - Med Level
break; break;
case "PC Direct-Neural Interface": case "PC Direct-Neural Interface":
//Allows people to directly communicate interface with PCs..which helps with Software and IT jobs //Allows people to directly communicate interface with PCs..which helps with Software and IT jobs
//Med level
break; break;
case "PC Direct-Neural Interface Optimization Submodule": case "PC Direct-Neural Interface Optimization Submodule":
//Allows u to better optimize code/pc when connecting with PC DNI..helps with software/IT jobs //Allows u to better optimize code/pc when connecting with PC DNI..helps with software/IT jobs
//High level
break;
case "PC Direct-Neural Interface NeuroNet Injector":
//Allow you to use ur brain as aneural net on a computer lol...increases everything
//High Level
break; break;
//Misc augmentations //Misc augmentations
case "Neurotrainer I": case "Neurotrainer I":
//Increase all exp gains //Increase all exp gains - Low level
break; break;
case "Neurotrainer II": case "Neurotrainer II":
//Increase all exp gains //Increase all exp gains - Med level
break; break;
case "Neurotrainer III": case "Neurotrainer III":
//Increase all exp gains //Increase all exp gains - High Level
break; break;
case "HyperSight Corneal Implant": case "HyperSight Corneal Implant":
//Increases sight..which increases dex..hacking speed + money? //Increases sight..which increases dex..hacking speed + money? - Med high level
break; break;
default: default:

@ -69,6 +69,10 @@ initFactions = function() {
var KuaiGongInternational = new Faction("KuaiGong International"); var KuaiGongInternational = new Faction("KuaiGong International");
AddToFactions(KuaiGongInternational); AddToFactions(KuaiGongInternational);
//Other corporations
var FulcrumTechnologies = new Faction("Fulcrum Secret Technologies");
AddToFactions(FulcrumTechnologies);
//Hacker groups //Hacker groups
var BitRunners = new Faction("BitRunners"); var BitRunners = new Faction("BitRunners");
AddToFactions(BitRunners); AddToFactions(BitRunners);