From 83502831d8dabeccebf518eb1cab950b2b01872b Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Sat, 13 May 2017 13:59:19 -0500 Subject: [PATCH] Removed some log statements. Rebalancing on RAM for home comp --- src/Constants.js | 1 + src/Faction.js | 1 - src/NetscriptEvaluator.js | 1 - src/Script.js | 1 - utils/PurchaseRamForHomeBox.js | 6 +++--- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Constants.js b/src/Constants.js index abea8ca8a..1862b7835 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -237,6 +237,7 @@ CONSTANTS = { "sleep(n)
Suspends the script for n milliseconds.
Example: sleep(5000);

" + "grow(hostname/ip)
Use your hacking skills to increase the amount of money available on a server. The argument passed in " + "must be a string with either the IP or hostname of the target server.
Example: grow('foodnstuff');

" + + "print(x)
Prints a value or a variable to the scripts logs (which can be viewed with the 'tail [script]' terminal command

" + "nuke(hostname/ip)
Run NUKE.exe on the target server. NUKE.exe must exist on your home computer.
Example: nuke('foodnstuff');

" + "brutessh(hostname/ip)
Run BruteSSH.exe on the target server. BruteSSH.exe must exist on your home computer
Example: brutessh('foodnstuff');

" + "ftpcrack(hostname/ip)
Run FTPCrack.exe on the target server. FTPCrack.exe must exist on your home computer
Example: ftpcrack('foodnstuff');

" + diff --git a/src/Faction.js b/src/Faction.js index 75ac51305..501bcc4b1 100644 --- a/src/Faction.js +++ b/src/Faction.js @@ -425,7 +425,6 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //Tian Di Hui - console.log("here"); var tiandihuiFac = Factions["Tian Di Hui"]; if (tiandihuiFac.isBanned == false && tiandihuiFac.isMember == false && this.money >= 1000000 && this.hacking_skill >= 50 && diff --git a/src/NetscriptEvaluator.js b/src/NetscriptEvaluator.js index 80d14f7d7..b3d91683e 100644 --- a/src/NetscriptEvaluator.js +++ b/src/NetscriptEvaluator.js @@ -272,7 +272,6 @@ function evaluate(exp, workerScript) { server.moneyAvailable -= moneyGained; Player.gainMoney(moneyGained); workerScript.scriptRef.onlineMoneyMade += moneyGained; - console.log("About to add to moneystolenmap for " + server.hostname); workerScript.scriptRef.moneyStolenMap[server.ip] += moneyGained; Player.gainHackingExp(expGainedOnSuccess); diff --git a/src/Script.js b/src/Script.js index 81ec5d0f6..d9429618a 100644 --- a/src/Script.js +++ b/src/Script.js @@ -33,7 +33,6 @@ function saveAndCloseScriptEditor() { } var code = document.getElementById("script-editor-text").value; code = code.replace(/\s\s+/g, ''); - console.log(code); if (code.indexOf("while(true) {hack('foodnstuff');}") == -1) { dialogBoxCreate("Please copy and paste the code from the tutorial!"); return; diff --git a/utils/PurchaseRamForHomeBox.js b/utils/PurchaseRamForHomeBox.js index 6de7c9bbe..898e2fc99 100644 --- a/utils/PurchaseRamForHomeBox.js +++ b/utils/PurchaseRamForHomeBox.js @@ -34,10 +34,10 @@ purchaseRamForHomeBoxCreate = function() { var numUpgrades = Math.log2(currentRam); //Calculate cost - //Base cost of RAM is 50k per 1GB...but lets have this increase by 21% for every time - //the RAM has been upgraded + //Base cost of RAM is 50k per 1GB...but lets have this increase by some percentage + //each time the ram has been upgraded var cost = currentRam * CONSTANTS.BaseCostFor1GBOfRamHome; - var mult = Math.pow(1.21, numUpgrades); + var mult = Math.pow(1.32, numUpgrades); cost = cost * mult; purchaseRamForHomeBoxSetText("Would you like to purchase additional RAM for your home computer?

" +