diff --git a/src/Augmentations.js b/src/Augmentations.js index dfbc3faba..c67a08c0d 100644 --- a/src/Augmentations.js +++ b/src/Augmentations.js @@ -264,7 +264,7 @@ initAugmentations = function() { AddToAugmentations(EnhancedMyelinSheathing); var SynapticEnhancement = new Augmentation("Synaptic Enhancement Implant"); - SynapticEnhancement.setRequirements(50000, 35000000); + SynapticEnhancement.setRequirements(50000, 10000000); 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%."); @@ -451,7 +451,7 @@ initAugmentations = function() { //Misc augmentations var Neurotrainer1 = new Augmentation("Neurotrainer I"); - Neurotrainer1.setRequirements(50000, 35000000); + Neurotrainer1.setRequirements(50000, 20000000); 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" + "attaches to a different neural pathway to enhance the brain's ability to retain\n" + diff --git a/src/Faction.js b/src/Faction.js index e502916d2..74b654746 100644 --- a/src/Faction.js +++ b/src/Faction.js @@ -141,6 +141,7 @@ initFactions = function() { AddToFactions(TianDiHui); var CyberSec = new Faction("CyberSec"); CyberSec.setInfo(FactionInfo.CyberSecInfo); + CyberSec.setAugmentationMultipliers(0.8, 0.8); AddToFactions(CyberSec); } @@ -736,6 +737,11 @@ displayFactionAugmentations = function(factionName) { pElem.style.display = "inline-block"; aElem.innerHTML = aug.name; + aElem.addEventListener("click", function() { + console.log("here"); + purchaseAugmentationBoxCreate(aug, faction); + }); + span.appendChild(aElem); span.appendChild(pElem); diff --git a/src/Player.js b/src/Player.js index de45f9f01..3d4ddea6f 100644 --- a/src/Player.js +++ b/src/Player.js @@ -287,7 +287,6 @@ PlayerObject.prototype.gainCharismaExp = function(exp) { /* Working for Company */ PlayerObject.prototype.finishWork = function(cancelled) { - console.log("HERE"); //Since the work was cancelled early, player only gains half of what they've earned so far var cancMult = 1; if (cancelled) {cancMult = 2;} @@ -439,7 +438,6 @@ PlayerObject.prototype.work = function(numCycles) { /* Working for Faction */ PlayerObject.prototype.finishFactionWork = function(cancelled, faction) { - console.log("HERE"); this.gainHackingExp(this.workHackExpGained); this.gainStrengthExp(this.workStrExpGained); this.gainDefenseExp(this.workDefExpGained); diff --git a/src/Server.js b/src/Server.js index 9fd9ead95..d2113f733 100644 --- a/src/Server.js +++ b/src/Server.js @@ -643,7 +643,7 @@ processServerGrowth = function(numCycles) { var numServerGrowthCyclesAdjusted = numServerGrowthCycles * serverGrowthPercentage; //Apply serverGrowth for the calculated number of growth cycles - var serverGrowth = Math.pow(1.0004, numServerGrowthCyclesAdjusted); + var serverGrowth = Math.pow(1.00075, numServerGrowthCyclesAdjusted); //console.log("serverGrowth ratio: " + serverGrowth); server.moneyAvailable *= serverGrowth; } diff --git a/src/engine.js b/src/engine.js index ba87b4414..9a12dfed5 100644 --- a/src/engine.js +++ b/src/engine.js @@ -867,7 +867,9 @@ var Engine = { processServerGrowth(numCyclesOffline); //Should be done before offline production for scripts loadAllRunningScripts(); //This also takes care of offline production for those scripts - Player.work(numCyclesOffline); + if (Player.isWorking) { + Player.work(numCyclesOffline); + } } else { //No save found, start new game console.log("Initializing new game"); diff --git a/utils/PurchaseAugmentationBox.js b/utils/PurchaseAugmentationBox.js index 7722b3683..5b4dd3534 100644 --- a/utils/PurchaseAugmentationBox.js +++ b/utils/PurchaseAugmentationBox.js @@ -28,6 +28,7 @@ purchaseAugmentationBoxSetText = function(txt) { //ram argument is in GB purchaseAugmentationBoxCreate = function(aug, fac) { + console.log("here"); purchaseAugmentationBoxSetText("Would you like to purchase the " + aug.name + " Augmentation for $" + (aug.baseCost * fac.augmentationPriceMult) + "?");