mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
Fixed syntax errors
This commit is contained in:
parent
9153c48b23
commit
7aa42321f2
@ -43,6 +43,7 @@
|
||||
<script src="src/CompanyJobApplication.js"></script>
|
||||
<script src="src/Terminal.js"></script>
|
||||
<script src="src/PurchaseServers.js"></script>
|
||||
<script src="src/Augmentations.js"></script>
|
||||
|
||||
<script src="src/engine.js"></script>
|
||||
|
||||
|
@ -10,21 +10,22 @@ function Augmentation(name) {
|
||||
this.baseCost = 0;
|
||||
}
|
||||
|
||||
Augmentation.prototype.setInfo(inf) {
|
||||
Augmentation.prototype.setInfo = function(inf) {
|
||||
this.info = inf;
|
||||
}
|
||||
|
||||
Augmentation.prototype.setRequirements(rep, cost) {
|
||||
Augmentation.prototype.setRequirements = function(rep, cost) {
|
||||
this.baseRepRequirement = rep;
|
||||
this.baseCost = cost;
|
||||
}
|
||||
|
||||
//Takes in an array of faction names and adds this augmentation to all of those factions
|
||||
Augmentation.prototype.addToFactions(factionList) {
|
||||
Augmentation.prototype.addToFactions = function(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");
|
||||
if (faction == null) {
|
||||
console.log("Error: Could not find faction with this name:" + factionList[i]);
|
||||
return;
|
||||
}
|
||||
faction.augmentations.push(this.name);
|
||||
}
|
||||
@ -58,8 +59,8 @@ initAugmentations = function() {
|
||||
"balance and hand-eye coordination. It is also capable of augmenting reality by projecting digital information\n" +
|
||||
"directly onto the retina. These enhancements allow the player to better lock-on and keep track of enemies. \n\n" +
|
||||
"This augmentation increases the player's dexterity by 10%.");
|
||||
Targeting1.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
|
||||
Targeting1.addToFactions(["The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries"]);
|
||||
AddToAugmentations(Targeting1);
|
||||
|
||||
var Targeting2 = new Augmentation("Augmented Targeting II");
|
||||
@ -67,8 +68,8 @@ initAugmentations = function() {
|
||||
Targeting2.setInfo("This is an upgrade of the Augmented Targeting I cranial implant, which is capable of augmenting reality\n" +
|
||||
"and enhances the user's balance and hand-eye coordination. \n\nThis upgrade increases the player's dexterity" +
|
||||
"by an additional 20%.");
|
||||
Targeting2.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
|
||||
Targeting2.addToFactions(["The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries"]);
|
||||
AddToAugmentations(Targeting2);
|
||||
|
||||
var Targeting3 = new Augmentation("Augmented Targeting III");
|
||||
@ -76,8 +77,8 @@ initAugmentations = function() {
|
||||
Targeting3.setInfo("This is an upgrade of the Augmented Targeting II cranial implant, which is capable of augmenting reality\n" +
|
||||
"and enhances the user's balance and hand-eye coordination. \n\nThis upgrade increases the player's dexterity" +
|
||||
"by an additional 50%.");
|
||||
Targeting3.addToFactions("The Dark Army", "The Syndicate", "OmniTek Incorporated",
|
||||
"KuaiGong International", "Blade Industries", "The Covenant");
|
||||
Targeting3.addToFactions(["The Dark Army", "The Syndicate", "OmniTek Incorporated",
|
||||
"KuaiGong International", "Blade Industries", "The Covenant"]);
|
||||
AddToAugmentations(Targeting3);
|
||||
|
||||
var SyntheticHeart = new Augmentation("Synthetic Heart");
|
||||
@ -85,8 +86,8 @@ initAugmentations = function() {
|
||||
SyntheticHeart.setInfo("This advanced artificial heart, created from plasteel and graphene, is capable of pumping more blood\n" +
|
||||
"at much higher efficiencies than a normal human heart.\n\n This augmentation increases the player's agility" +
|
||||
"and strength by 100%");
|
||||
SyntheticHeart.addToFactions("KuaiGong International", "Fulcrum Secret Technologies", "Speakers for the Dead",
|
||||
"NWO", "The Covenant", "Daedalus", "Illuminati");
|
||||
SyntheticHeart.addToFactions(["KuaiGong International", "Fulcrum Secret Technologies", "Speakers for the Dead",
|
||||
"NWO", "The Covenant", "Daedalus", "Illuminati"]);
|
||||
AddToAugmentations(SyntheticHeart);
|
||||
|
||||
var SynfibrilMuscle = new Augmentation("Synfibril Muscle");
|
||||
@ -95,8 +96,8 @@ initAugmentations = function() {
|
||||
"the myofibrils, altering their underlying structure. The end result is muscles that are stronger and more elastic.\n" +
|
||||
"Scientists have named these artificially enhanced units 'synfibrils'.\n\n This augmentation increases the player's" +
|
||||
"strength and defense by 50%.");
|
||||
SynfibrilMuscle.addToFactions("KuaiGong International", "Fulcrum Secret Technologies", "Speakers for the Dead",
|
||||
"NWO", "The Covenant", "Daedalus", "Illuminati", "Blade Industries");
|
||||
SynfibrilMuscle.addToFactions(["KuaiGong International", "Fulcrum Secret Technologies", "Speakers for the Dead",
|
||||
"NWO", "The Covenant", "Daedalus", "Illuminati", "Blade Industries"]);
|
||||
AddToAugmentations(SynfibrilMuscle)
|
||||
|
||||
var CombatRib1 = new Augmentation("Combat Rib I");
|
||||
@ -104,24 +105,24 @@ initAugmentations = function() {
|
||||
CombatRib1.setInfo("The human body's ribs are replaced with artificial ribs that automatically and continuously release cognitive" +
|
||||
"and performance-enhancing drugs into the bloodstream, improving the user's abilities in combat.\n\n" +
|
||||
"This augmentation increases the player's strength and defense by 10%.");
|
||||
CombatRib1.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
|
||||
CombatRib1.addToFactions(["The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries"]);
|
||||
AddToAugmentations(CombatRib1);
|
||||
|
||||
var CombatRib2 = new Augmentation("Combat Rib II");
|
||||
CombatRib2.setRequirements.setRequirements(100000, 40000000);
|
||||
CombatRib2.setRequirements(100000, 40000000);
|
||||
CombatRib2.setInfo("This is an upgrade to the Combat Rib I augmentation, and is capable of releasing even more potent combat-enhancing\n" +
|
||||
"drugs into the bloodstream\n\n. This upgrade increases the player's strength and defense by an additional 20%.")
|
||||
CombatRib2.addToFactions("The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries");
|
||||
CombatRib2.addToFactions(["The Dark Army", "The Syndicate", "Sector-12", "Volhaven", "Ishima",
|
||||
"OmniTek Incorporated", "KuaiGong International", "Blade Industries"]);
|
||||
AddToAugmentations(CombatRib2);
|
||||
|
||||
var CombatRib3 = new Augmentation("Combat Rib III");
|
||||
CombatRib3.setRequirements(200000, 100000000);
|
||||
CombatRib3.setInfo("This is an upgrade to the Combat Rib II augmentation, and is capable of releasing even more potent combat-enhancing\n" +
|
||||
"drugs into the bloodstream\n\n. This upgrade increases the player's strength and defense by an additional 30%.");
|
||||
CombatRib3.addToFactions("The Dark Army", "The Syndicate", "OmniTek Incorporated",
|
||||
"KuaiGong International", "Blade Industries", "The Covenant");
|
||||
CombatRib3.addToFactions(["The Dark Army", "The Syndicate", "OmniTek Incorporated",
|
||||
"KuaiGong International", "Blade Industries", "The Covenant"]);
|
||||
AddToAugmentations(CombatRib3);
|
||||
|
||||
var NanofiberWeave = new Augmentation("Nanofiber Weave");
|
||||
@ -129,20 +130,20 @@ initAugmentations = function() {
|
||||
NanofiberWeave.setInfo("Synthetic nanofibers are woven into the skin's extracellular matrix using electrospinning.\n" +
|
||||
"This improves the skin's ability to regenerate itself and protect the body from external stresses and forces.\n\n" +
|
||||
"This augmentation increases the player's strength and defense by 30%.");
|
||||
NanofiberWeave.addToFactions("Tian Di Hui", "The Syndicate", "The Dark Army", "Speakers for the Dead",
|
||||
"Blade Industries", "Fulcrum Secret Technologies", "OmniTek Incorporated");
|
||||
NanofiberWeave.addToFactions(["Tian Di Hui", "The Syndicate", "The Dark Army", "Speakers for the Dead",
|
||||
"Blade Industries", "Fulcrum Secret Technologies", "OmniTek Incorporated"]);
|
||||
AddToAugmentations(NanofiberWeave);
|
||||
|
||||
var SubdermalArmor = new Augmentation("NEMEAN Subdermal Weave");
|
||||
SubdermalArmor.setRequirements(1000000, 750000000);
|
||||
SubdermalArmor.setInfo("The NEMEAN Subdermal Weave is a thin, light-weight, graphene plating that houses a dilatant fluid.\n"
|
||||
SubdermalArmor.setInfo("The NEMEAN Subdermal Weave is a thin, light-weight, graphene plating that houses a dilatant fluid.\n" +
|
||||
"The material is implanted underneath the skin, and is the most advanced form of defensive enhancement\n" +
|
||||
"that has ever been created. The dilatant fluid, despite being thin and light, is extremely effective\n" +
|
||||
"at stopping piercing blows and reducing blunt trauma. The properties of graphene allow the plating to\n" +
|
||||
"mitigate damage from any fire-related or electrical traumas.\n\n" +
|
||||
"This augmentation increases the player's defense by 150%.");
|
||||
SubdermalArmor.addToFactions("The Syndicate", "Fulcrum Secret Technologies", "Illuminati", "Daedalus",
|
||||
"The Covenant");
|
||||
SubdermalArmor.addToFactions(["The Syndicate", "Fulcrum Secret Technologies", "Illuminati", "Daedalus",
|
||||
"The Covenant"]);
|
||||
AddToAugmentations(SubdermalArmor);
|
||||
|
||||
var WiredReflexes = new Augmentation("Wired Reflexes");
|
||||
@ -150,8 +151,8 @@ initAugmentations = function() {
|
||||
WiredReflexes.setInfo("Synthetic nerve-enhancements are injected into all major parts of the somatic nervous system,\n" +
|
||||
"supercharging the body's ability to send signals through neurons. This results in increased reflex speed.\n\n" +
|
||||
"This augmentation increases the player's agility by 5%.");
|
||||
WiredReflexes.addToFactions("Tian Di Hui", "Sector-12", "Volhaven", "Aevum", "Ishima",
|
||||
"The Syndicate", "The Dark Army", "Speakers for the Dead");
|
||||
WiredReflexes.addToFactions(["Tian Di Hui", "Sector-12", "Volhaven", "Aevum", "Ishima",
|
||||
"The Syndicate", "The Dark Army", "Speakers for the Dead"]);
|
||||
AddToAugmentations(WiredReflexes);
|
||||
|
||||
var GrapheneBoneLacings = new Augmentation("Graphene Bone Lacings");
|
||||
@ -159,7 +160,7 @@ initAugmentations = function() {
|
||||
GrapheneBoneLacings.setInfo("A graphene-based material is grafted and fused into the user's bones, significantly increasing\n" +
|
||||
"their density and tensile strength.\n\n" +
|
||||
"This augmentation increases the player's strength and defense by 100%.");
|
||||
GrapheneBoneLacings.addToFactions("Fulcrum Secret Technologies", "The Covenant");
|
||||
GrapheneBoneLacings.addToFactions(["Fulcrum Secret Technologies", "The Covenant"]);
|
||||
AddToAugmentations(GrapheneBoneLacings);
|
||||
|
||||
var BionicSpine = new Augmentation("Bionic Spine");
|
||||
@ -169,8 +170,8 @@ initAugmentations = function() {
|
||||
"stimulating and regulating the neural signals that are sent and received by the spinal cord. This results in\n" +
|
||||
"greatly improved senses and reaction speeds.\n\n" +
|
||||
"This augmentation increases all of the player's combat stats by 20%.");
|
||||
BionicSpine.addToFactions("Speakers for the Dead", "The Syndicate", "KuaiGong International",
|
||||
"OmniTek Incorporated", "Blade Industries");
|
||||
BionicSpine.addToFactions(["Speakers for the Dead", "The Syndicate", "KuaiGong International",
|
||||
"OmniTek Incorporated", "Blade Industries"]);
|
||||
AddToAugmentations(BionicSpine);
|
||||
|
||||
var GrapheneBionicSpine = new Augmentation("Graphene Bionic Spine Upgrade");
|
||||
@ -178,15 +179,15 @@ initAugmentations = function() {
|
||||
GrapheneBionicSpine.setInfo("An upgrade to the Bionic Spine augmentation. It fuses the implant with an advanced graphene\n" +
|
||||
"material to make it much stronger and lighter.\n\n" +
|
||||
"This augmentation increases all of the player's combat stats by 100%.");
|
||||
GrapheneBionicSpine.addToFactions("Fulcrum Secret Technologies", "ECorp");
|
||||
GrapheneBionicSpine.addToFactions(["Fulcrum Secret Technologies", "ECorp"]);
|
||||
AddToAugmentations(GrapheneBionicSpine);
|
||||
|
||||
var BionicLegs = new Augmentation("Bionic Legs");
|
||||
BionicLegs.setRequirements(200000, 60000000);
|
||||
BionicLegs.setInfo("Cybernetic legs created from plasteel and carbon fibers that completely replace the user's organic legs. \n\n" +
|
||||
"This augmentation increases the player's agility by 50%.");
|
||||
BionicLegs.addToFactions("Speakers for the Dead", "The Syndicate", "KuaiGong International",
|
||||
"OmniTek Incorporated", "Blade Industries");
|
||||
BionicLegs.addToFactions(["Speakers for the Dead", "The Syndicate", "KuaiGong International",
|
||||
"OmniTek Incorporated", "Blade Industries"]);
|
||||
AddToAugmentations(BionicLegs);
|
||||
|
||||
var GrapheneBionicLegs = new Augmentation("Graphene Bionic Legs Upgrade");
|
||||
@ -194,7 +195,7 @@ initAugmentations = function() {
|
||||
GrapheneBionicLegs.setInfo("An upgrade to the Bionic Legs augmentation. It fuses the implant with an advanced graphene\n" +
|
||||
"material to make it much stronger and lighter\n\n" +
|
||||
"This augmentation increases the player's agility by an additional 150%.");
|
||||
GrapheneBionicLegs.addToFactions("MegaCorp", "ECorp", "Fulcrum Secret Technologies");
|
||||
GrapheneBionicLegs.addToFactions(["MegaCorp", "ECorp", "Fulcrum Secret Technologies"]);
|
||||
AddToAugmentations(GrapheneBionicLegs);
|
||||
|
||||
//Labor stat augmentations
|
||||
@ -204,8 +205,8 @@ initAugmentations = function() {
|
||||
"The embedded computer processes characteristics of incoming speech, such as tone\n" +
|
||||
"and inflection, to pick up on subtle cues and aid in social interaction.\n\n" +
|
||||
"This augmentation increases the player's charisma by 20%.");
|
||||
SpeechProcessor.addToFactions("Tian Di Hui", "Chongqing", "Sector-12", "New Tokyo", "Aevum",
|
||||
"Ishima", "Volhaven");
|
||||
SpeechProcessor.addToFactions(["Tian Di Hui", "Chongqing", "Sector-12", "New Tokyo", "Aevum",
|
||||
"Ishima", "Volhaven"]);
|
||||
AddToAugmentations(SpeechProcessor);
|
||||
|
||||
var EnhancedSocialInteractionImplant = new Augmentation("Enhanced Social Interaction Implant");
|
||||
@ -216,8 +217,8 @@ initAugmentations = function() {
|
||||
"situations. The implant also uses deep learning software to continuously learn new behavior\n" +
|
||||
"patterns and how to best respond.\n\n" +
|
||||
"This augmentation increases the player's charisma and charisma experience gain rate by 50%.");
|
||||
EnhancedSocialInteractionImplant.addToFactions("Bachman & Associates", "NWO", "Clarke Incorporated",
|
||||
"OmniTek Incorporated", "Four Sigma");
|
||||
EnhancedSocialInteractionImplant.addToFactions(["Bachman & Associates", "NWO", "Clarke Incorporated",
|
||||
"OmniTek Incorporated", "Four Sigma"]);
|
||||
AddToAugmentations(EnhancedSocialInteractionImplant);
|
||||
|
||||
//Hacking augmentations
|
||||
@ -232,19 +233,19 @@ initAugmentations = function() {
|
||||
"Increases the player's hacking speed by 2%\n" +
|
||||
"Increases the amount of money the player's gains from hacking by 10%\n" +
|
||||
"Inreases the player's hacking skill by 10%");
|
||||
ArtificialBioNeuralNetwork.addToFactions("BitRunners", "Fulcrum Secret Technologies");
|
||||
ArtificialBioNeuralNetwork.addToFactions(["BitRunners", "Fulcrum Secret Technologies"]);
|
||||
AddToAugmentations(ArtificialBioNeuralNetwork);
|
||||
|
||||
var ArtificialSynapticPotentiation = new Augmentation("Artificial Synaptic Potentiation");
|
||||
ArtificialSynapticPotentiation.setRequirements(600000, 400000000);
|
||||
ArtificialSynapticPotentiation.("The body is injected with a chemical that artificially induces synaptic potentiation,\n" +
|
||||
ArtificialSynapticPotentiation.setInfo("The body is injected with a chemical that artificially induces synaptic potentiation,\n" +
|
||||
"otherwise known as the strengthening of synapses. This results in a enhanced cognitive abilities.\n\n" +
|
||||
"This augmentation increases the player's hacking speed and hacking chance by 1%.");
|
||||
ArtificialSynapticPotentiation.addToFactions("The Black Hand", "NiteSec");
|
||||
ArtificialSynapticPotentiation.addToFactions(["The Black Hand", "NiteSec"]);
|
||||
AddToAugmentations(ArtificialSynapticPotentiation);
|
||||
|
||||
var EnhancedMyelinSheathing = new Augmentation("Enhanced Myelin Sheathing");
|
||||
EnhancedMyelinSheathing.setRequirements(900000, 850000000);)
|
||||
EnhancedMyelinSheathing.setRequirements(900000, 850000000);
|
||||
EnhancedMyelinSheathing.setInfo("Electrical signals are used to induce a new, artificial form of myelinogensis in the human body.\n" +
|
||||
"This process results in the proliferation of new, synthetic myelin sheaths in the nervous\n" +
|
||||
"system. These myelin sheaths can propogate neuro-signals much faster than their organic\n" +
|
||||
@ -253,7 +254,7 @@ initAugmentations = function() {
|
||||
"Increases the player's hacking speed by 1%\n" +
|
||||
"Increases the player's hacking skill by 5%\n" +
|
||||
"Increases the player's hacking experience gain rate by 5%");
|
||||
EnhancedMyelinSheating.addToFactions("Fulcrum Secret Technologies", "BitRunners", "The Black Hand");
|
||||
EnhancedMyelinSheathing.addToFactions(["Fulcrum Secret Technologies", "BitRunners", "The Black Hand"]);
|
||||
AddToAugmentations(EnhancedMyelinSheathing);
|
||||
|
||||
var SynapticEnhancement = new Augmentation("Synaptic Enhancement Implant");
|
||||
@ -261,7 +262,7 @@ initAugmentations = function() {
|
||||
SynapticEnhancement.setInfo("A small cranial implant that continuously uses weak electric signals to stimulate the brain and \n" +
|
||||
"induce stronger synaptic activity. This improves the the user's cognitive abilities.\n\n" +
|
||||
"This augmentation increases the player's hacking speed by 1%.");
|
||||
SynapticEnhancement.addToFactions("CyberSec");
|
||||
SynapticEnhancement.addToFactions(["CyberSec"]);
|
||||
AddToAugmentations(SynapticEnhancement);
|
||||
|
||||
var NeuralRetentionEnhancement = new Augmentation("Neural-Retention Enhancement");
|
||||
@ -269,16 +270,16 @@ initAugmentations = function() {
|
||||
NeuralRetentionEnhancement.setInfo("Chemical injections are used to permanently alter and strengthen the brain's neuronal\n" +
|
||||
"circuits, strengthening its ability to retain information.\n\n" +
|
||||
"This augmentation increases the player's hacking experience gain rate by 40%.");
|
||||
NeuralRetentionEnhancement.addToFactions("CyberSec", "NiteSec");
|
||||
NeuralRetentionEnhancement.addToFactions(["CyberSec", "NiteSec"]);
|
||||
AddToAugmentations(NeuralRetentionEnhancement);
|
||||
|
||||
var DataJack = new Augmentation("DataJack");
|
||||
DataJack.setRequirements(750000, 75000000);
|
||||
DataJack.("A brain implant that provides an interface for direct, wireless communication between a computer's main\n" +
|
||||
DataJack.setInfo("A brain implant that provides an interface for direct, wireless communication between a computer's main\n" +
|
||||
"memory and the mind. This implant allows the user to not only access a computer's memory, but also alter\n" +
|
||||
"and delete it.\n\n" +
|
||||
"This augmentation increases the amount of money the player gains from hacking by 20%");
|
||||
DataJack.addToFactions("BitRunners", "The Black Hand", "NiteSec", "Chongqing", "New Tokyo");
|
||||
DataJack.addToFactions(["BitRunners", "The Black Hand", "NiteSec", "Chongqing", "New Tokyo"]);
|
||||
AddToAugmentations(DataJack);
|
||||
|
||||
var ENM = new Augmentation("Embedded Netburner Module");
|
||||
@ -289,8 +290,8 @@ initAugmentations = function() {
|
||||
"not do much, but a variety of very powerful upgrades can be installed that allow you to fully\n" +
|
||||
"control the traffic on a network.\n\n" +
|
||||
"This augmentation increases the player's hacking skill by 1%");
|
||||
ENM.addToFactions("BitRunners", "The Black Hand", "NiteSec", "ECorp", "MegaCorp",
|
||||
"Fulcrum Secret Technologies", "NWO", "Blade Industries");
|
||||
ENM.addToFactions(["BitRunners", "The Black Hand", "NiteSec", "ECorp", "MegaCorp",
|
||||
"Fulcrum Secret Technologies", "NWO", "Blade Industries"]);
|
||||
AddToAugmentations(ENM);
|
||||
|
||||
var ENMCore = new Augmentation("Embedded Netburner Module Core Implant");
|
||||
@ -303,8 +304,8 @@ initAugmentations = function() {
|
||||
"Increases the player's chance of successfully performing a hack by 2%\n" +
|
||||
"Increases the player's hacking experience gain rate by 10%\n" +
|
||||
"Increases the player's hacking skill by 1%");
|
||||
ENMCore.addToFactions("BitRunners", "The Black Hand", "NiteSec", "ECorp", "MegaCorp",
|
||||
"Fulcrum Secret Technologies", "NWO", "Blade Industries");
|
||||
ENMCore.addToFactions(["BitRunners", "The Black Hand", "NiteSec", "ECorp", "MegaCorp",
|
||||
"Fulcrum Secret Technologies", "NWO", "Blade Industries"]);
|
||||
AddToAugmentations(ENMCore);
|
||||
|
||||
var ENMCoreV2 = new Augmentation("Embedded Netburner Module Core V2 Upgrade");
|
||||
@ -319,8 +320,8 @@ initAugmentations = function() {
|
||||
"Increases the player's chance of successfully performing a hack by 5%\n" +
|
||||
"Increases the player's hacking experience gain rate by 50%\n" +
|
||||
"Increases the player's hacking skill by 5%");
|
||||
ENMCoreV2.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Blade Industries", "OmniTek Incorporated", "KuaiGong International");
|
||||
ENMCoreV2.addToFactions(["ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Blade Industries", "OmniTek Incorporated", "KuaiGong International"]);
|
||||
AddToAugmentations(ENMCoreV2);
|
||||
|
||||
var ENMCoreV3 = new Augmentation("Embedded Netburner Module Core V3 Upgrade");
|
||||
@ -334,8 +335,8 @@ initAugmentations = function() {
|
||||
"Increases the player's chance of successfully performing a hack by 10%\n" +
|
||||
"Increases the player's hacking experience gain rate by 100%\n" +
|
||||
"Increases the player's hacking skill by 10%");
|
||||
ENMCoreV3.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Daedalus", "The Covenant", "Illuminati");
|
||||
ENMCoreV3.addToFactions(["ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Daedalus", "The Covenant", "Illuminati"]);
|
||||
AddToAugmentations(ENMCoreV3);
|
||||
|
||||
var ENMAnalyzeEngine = new Augmentation("Embedded Netburner Module Analyze Engine");
|
||||
@ -343,8 +344,8 @@ initAugmentations = function() {
|
||||
ENMAnalyzeEngine.setInfo("Installs the Analyze Engine for the Embedded Netburner Module, which is a CPU cluster\n" +
|
||||
"that vastly outperforms the Netburner Module's native single-core processor.\n\n" +
|
||||
"This augmentation increases the player's hacking speed by 10%.");
|
||||
ENMAnalyzeEngine.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Daedalus", "The Covenant", "Illuminati");
|
||||
ENMAnalyzeEngine.addToFactions(["ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Daedalus", "The Covenant", "Illuminati"]);
|
||||
AddToAugmentations(ENMAnalyzeEngine);
|
||||
|
||||
var ENMDMA = new Augmentation("Embedded Netburner Module Direct Memory Access Upgrade");
|
||||
@ -355,8 +356,8 @@ initAugmentations = function() {
|
||||
"This augmentation: \n" +
|
||||
"Increases the amount of money the player gains from hacking by 50%\n" +
|
||||
"Increases the player's chance of successfully performing a hack by 20%");
|
||||
ENMDMA.addToFactions("ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Daedalus", "The Covenant", "Illuminati");
|
||||
ENMDMA.addToFactions(["ECorp", "MegaCorp", "Fulcrum Secret Technologies", "NWO",
|
||||
"Daedalus", "The Covenant", "Illuminati"]);
|
||||
AddToAugmentations(ENMDMA);
|
||||
|
||||
var Neuralstimulator = new Augmentation("Neuralstimulator");
|
||||
@ -367,9 +368,9 @@ initAugmentations = function() {
|
||||
"Increases the player's hacking speed by 1%\n" +
|
||||
"Increases the player's chance of successfully performing a hack by 10%\n" +
|
||||
"Increases the player's hacking experience gain rate by 20%");
|
||||
Neuralstimulator.addToFactions("The Black Hand", "Chongqing", "Sector-12", "New Tokyo", "Aevum",
|
||||
Neuralstimulator.addToFactions(["The Black Hand", "Chongqing", "Sector-12", "New Tokyo", "Aevum",
|
||||
"Ishima", "Volhaven", "Bachman & Associates", "Clarke Incorporated",
|
||||
"Four Sigma");
|
||||
"Four Sigma"]);
|
||||
AddToAugmentations(Neuralstimulator);
|
||||
|
||||
//Work Augmentations
|
||||
@ -380,8 +381,8 @@ initAugmentations = function() {
|
||||
"cognitive enhancements.\n\n" +
|
||||
"This augmentation increases the amount of reputation the player gains \n" +
|
||||
"when working for a company by 10%.");
|
||||
NuoptimalInjectorImplant.addToFactions("Tian Di Hui", "Volhaven", "New Tokyo", "Chongqing", "Ishima",
|
||||
"Clarke Incorporated", "Four Sigma", "Bachman & Associates");
|
||||
NuoptimalInjectorImplant.addToFactions(["Tian Di Hui", "Volhaven", "New Tokyo", "Chongqing", "Ishima",
|
||||
"Clarke Incorporated", "Four Sigma", "Bachman & Associates"]);
|
||||
AddToAugmentations(NuoptimalInjectorImplant);
|
||||
|
||||
var SpeechEnhancement = new Augmentation("Speech Enhancement");
|
||||
@ -392,19 +393,19 @@ initAugmentations = function() {
|
||||
"This augmentation:\n" +
|
||||
"Increases the player's charisma by 5%\n" +
|
||||
"Increases the amount of reputation the player gains when working for a company by 5%");
|
||||
SpeechEnhancement.addToFactions("Tian Di Hui", "Speakers for the Dead", "Four Sigma", "KuaiGong International",
|
||||
"Clarke Incorporated", "Four Sigma", "Bachman & Associates");
|
||||
SpeechEnhancement.addToFactions(["Tian Di Hui", "Speakers for the Dead", "Four Sigma", "KuaiGong International",
|
||||
"Clarke Incorporated", "Four Sigma", "Bachman & Associates"]);
|
||||
AddToAugmentations(SpeechEnhancement);
|
||||
|
||||
var FocusWire = new Augmentation("FocusWire"); //Stops procrastination
|
||||
FocusWire.setRequirements(400000, 350000000);
|
||||
FocusWire.setInfo("A cranial implant that stops procrastination by blocking specific neural pathways\n"
|
||||
FocusWire.setInfo("A cranial implant that stops procrastination by blocking specific neural pathways\n" +
|
||||
"in the brain.\n\n" +
|
||||
"This augmentation: \n" +
|
||||
"Increases all experience gains by 10%\n" +
|
||||
"Increases the amount of money the player gains from working by 5%\n" +
|
||||
"Increases the amount of reputation the player gains when working for a company by 5%");
|
||||
FocusWire.addToFactions("Bachman & Associates", "Clarke Incorporated", "Four Sigma", "KuaiGong International");
|
||||
FocusWire.addToFactions(["Bachman & Associates", "Clarke Incorporated", "Four Sigma", "KuaiGong International"]);
|
||||
AddToAugmentations(FocusWire)
|
||||
|
||||
var PCDNI = new Augmentation("PC Direct-Neural Interface");
|
||||
@ -415,7 +416,7 @@ initAugmentations = function() {
|
||||
"This augmentation:\n" +
|
||||
"Increases the amount of reputation the player gains when working for a company by 10%\n" +
|
||||
"Increases the player's hacking skill by 10%");
|
||||
PCDNI.addToFactions("Four Sigma", "OmniTek Incorporated", "ECorp", "Blade Industries");
|
||||
PCDNI.addToFactions(["Four Sigma", "OmniTek Incorporated", "ECorp", "Blade Industries"]);
|
||||
AddToAugmentations(PCDNI);
|
||||
|
||||
var PCDNIOptimizer = new Augmentation("PC Direct-Neural Interface Optimization Submodule");
|
||||
@ -426,7 +427,7 @@ initAugmentations = function() {
|
||||
"This augmentation:\n" +
|
||||
"Increases the amount of reputation the player gains when working for a company by 20%\n" +
|
||||
"Increases the player's hacking skill by 20%");
|
||||
PCDNIOptimizer.addToFactions("Fulcrum Secret Technologies", "ECorp", "Blade Industries");
|
||||
PCDNIOptimizer.addToFactions(["Fulcrum Secret Technologies", "ECorp", "Blade Industries"]);
|
||||
AddToAugmentations(PCDNIOptimizer);
|
||||
|
||||
var PCDNINeuralNetwork = new Augmentation("PC Direct-Neural Interface NeuroNet Injector");
|
||||
@ -439,18 +440,18 @@ initAugmentations = function() {
|
||||
"Increases the amount of reputation the player gains when working for a company by 10%\n" +
|
||||
"Increases the player's hacking skill by 10%\n" +
|
||||
"Increases the player's hacking speed by 2%");
|
||||
PCDNINeuralNetwork.addToFactions("Fulcrum Secret Technologies");
|
||||
PCDNINeuralNetwork.addToFactions(["Fulcrum Secret Technologies"]);
|
||||
AddToAugmentations(PCDNINeuralNetwork);
|
||||
|
||||
//Misc augmentations
|
||||
var Neurotrainer1 = new Augmentation("Neurotrainer I");
|
||||
Neurotrainer1.setRequirements(50000, 35000000);
|
||||
Neurotrainer1.setInfo("A decentralized cranial implant that improves the brain's ability to learn. It is\n" +
|
||||
"installed by releasing millions of nanobots into the human brain, each of which\n"
|
||||
"installed by releasing millions of nanobots into the human brain, each of which\n" +
|
||||
"attaches to a different neural pathway to enhance the brain's ability to retain\n" +
|
||||
"and retrieve information.\n\n" +
|
||||
"This augmentation increases the player's experience gain rate for all stats by 5%");
|
||||
Neurotrainer1.addToFactions("CyberSec");
|
||||
Neurotrainer1.addToFactions(["CyberSec"]);
|
||||
AddToAugmentations(Neurotrainer1);
|
||||
|
||||
var Neurotrainer2 = new Augmentation("Neurotrainer II");
|
||||
@ -459,7 +460,7 @@ initAugmentations = function() {
|
||||
"is a more powerful version of the Neurotrainer I augmentation, but it does not\n" +
|
||||
"require Neurotrainer I to be installed as a prerequisite.\n\n" +
|
||||
"This augmentation increases the player's experience gain rate for all stats by 10%");
|
||||
Neurotrainer2.addToFactions("BitRunners", "NiteSec");
|
||||
Neurotrainer2.addToFactions(["BitRunners", "NiteSec"]);
|
||||
AddToAugmentations(Neurotrainer2);
|
||||
|
||||
var Neurotrainer3 = new Augmentation("Neurotrainer III");
|
||||
@ -468,11 +469,11 @@ initAugmentations = function() {
|
||||
"is a more powerful version of the Neurotrainer I and Neurotrainer II augmentation,\n" +
|
||||
"but it does not require either of them to be installed as a prerequisite.\n\n" +
|
||||
"This augmentation increases the player's experience gain rate for all stats by 20%");
|
||||
Neurotrainer3.addToFactions("NWO", "Four Sigma");
|
||||
Neurotrainer3.addToFactions(["NWO", "Four Sigma"]);
|
||||
AddToAugmentations(Neurotrainer3);
|
||||
|
||||
var Hypersight = new Augmentation("HyperSight Corneal Implant");
|
||||
Hypersight.setInfo("A bionic eye implant that grants sight capabilities far beyond those of a natural human.\n"
|
||||
Hypersight.setInfo("A bionic eye implant that grants sight capabilities far beyond those of a natural human.\n" +
|
||||
"Embedded circuitry within the implant provides the ability to detect heat and movement\n" +
|
||||
"through solid objects such as wells, thus providing 'x-ray vision'-like capabilities.\n\n" +
|
||||
"This augmentation: \n" +
|
||||
@ -480,12 +481,8 @@ initAugmentations = function() {
|
||||
"Increases the player's hacking speed by 1%" +
|
||||
"Increases the amount of money the player gains from hacking by 10%");
|
||||
Hypersight.setRequirements(800000, 650000000);
|
||||
Hypersight.addToFactions("Blade Industries", "KuaiGong International");
|
||||
Hypersight.addToFactions(["Blade Industries", "KuaiGong International"]);
|
||||
AddToAugmentations(Hypersight);
|
||||
|
||||
Player.dexterity_mult *= 1.5;
|
||||
Player.hacking_speed_mult *= .99;
|
||||
Player.hacking_money_mult *= 1.1;
|
||||
}
|
||||
|
||||
applyAugmentation = function(aug, faction) {
|
||||
|
@ -629,8 +629,8 @@ displayFactionAugmentations = function(factionName) {
|
||||
aElem.setAttribute("href", "#");
|
||||
if (faction.playerReputation >= (aug.baseRepRequirement * faction.augmentationRepRequirementMult)) {
|
||||
aElem.setAttribute("class", "a-link-button");
|
||||
pElem.innerHTML = "UNLOCKED"
|
||||
pElem.style.color = #66ff33;
|
||||
pElem.innerHTML = "UNLOCKED";
|
||||
//Might need to set color? Should be the green by default though...
|
||||
//TODO Event listener for button to purchase augmentation
|
||||
} else {
|
||||
aElem.setAttribute("class", "a-link-button-inactive");
|
||||
|
@ -415,7 +415,7 @@ PlayerObject.prototype.finishFactionWork = function(cancelled, faction) {
|
||||
Engine.loadTerminalContent();
|
||||
}
|
||||
|
||||
PlayerObject.prototype.startFactionWork(faction) {
|
||||
PlayerObject.prototype.startFactionWork = function(faction) {
|
||||
this.isWorking = true;
|
||||
this.currentWorkFactionName = faction.name;
|
||||
|
||||
@ -475,7 +475,7 @@ PlayerObject.prototype.startFactionFieldWork = function(faction) {
|
||||
this.startFactionWork(faction);
|
||||
}
|
||||
|
||||
PlayerObject.prototype.startFactionSecurityWork = faction(faction) {
|
||||
PlayerObject.prototype.startFactionSecurityWork = function(faction) {
|
||||
this.workHackExpGainRate = .1 * this.hacking_exp_mult;
|
||||
this.workStrExpGainRate = 0;
|
||||
this.workDefExpGainRate = 0;
|
||||
|
@ -289,18 +289,18 @@ var Engine = {
|
||||
'Job Title: ' + companyPosition + '<br><br><br><br>' +
|
||||
'Money: $' + (Player.money.toFixed(2)).toLocaleString() + '<br><br>' +
|
||||
'Hacking Level: ' + (Player.hacking_skill).toLocaleString() + '<br><br>' +
|
||||
'Strength: ' + (Player.strength.toLocaleString() + '<br><br>' +
|
||||
'Strength: ' + (Player.strength).toLocaleString() + '<br><br>' +
|
||||
'Defense: ' + (Player.defense).toLocaleString() + '<br><br>' +
|
||||
'Dexterity: ' + (Player.dexterity).toLocaleString() + '<br><br>' +
|
||||
'Agility: ' + (Player.agility).toLocaleString() + '<br><br>' +
|
||||
'Charisma: ' + (Player.charisma).toLocaleString() + '<br><br>' +
|
||||
'Servers owned: ' + Player.purchasedServers.length + '<br><br>' +
|
||||
'Servers owned: ' + Player.purchasedServers.length + '<br><br>';
|
||||
'Hacking experience: ' + (Player.hacking_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
'Strength experience: ' + (Player.strength_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
'Defense experience: ' + (Player.defense_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
'Dexterity experience: ' + (Player.dexterity_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
'Agility experience: ' + (Player.agility_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
'Charisma experience: ' + (Player.charisma_exp.toFixed(4)).toLocaleString() + '<br><br>';
|
||||
'Charisma experience: ' + (Player.charisma_exp.toFixed(4)).toLocaleString();
|
||||
},
|
||||
|
||||
/* Display locations in the world*/
|
||||
|
Loading…
Reference in New Issue
Block a user