diff --git a/src/Constants.js b/src/Constants.js index 451ed2d60..aea2e63f4 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -15,8 +15,8 @@ CONSTANTS = { BaseCostForHacknetNodeCore: 1000000, /* Hacknet Node constants */ - HacknetNodeMoneyGainPerLevel: 0.25, - HacknetNodePurchaseNextMult: 1.2; //Multiplier when purchasing an additional hacknet node + HacknetNodeMoneyGainPerLevel: 0.5, + HacknetNodePurchaseNextMult: 1.35, //Multiplier when purchasing an additional hacknet node HacknetNodeUpgradeLevelMult: 1.08, //Multiplier for cost when upgrading level HacknetNodeUpgradeRamMult: 1.2, //Multiplier for cost when upgrading RAM HacknetNodeUpgradeCoreMult: 1.5, //Multiplier for cost when buying another core diff --git a/src/Netscript/Evaluator.js b/src/Netscript/Evaluator.js index cc58437ec..d92a7b6e0 100644 --- a/src/Netscript/Evaluator.js +++ b/src/Netscript/Evaluator.js @@ -120,6 +120,7 @@ function evaluate(exp, workerScript) { if (env.stopFlag) {reject(workerScript);} console.log("for loop encountered in evaluator"); + workerScript.scriptRef.log("Entering for loop"); var pInit = new Promise(function(resolve, reject) { setTimeout(function() { var resInit = evaluate(exp.init, workerScript); @@ -135,6 +136,7 @@ function evaluate(exp, workerScript) { var pForLoop = evaluateFor(exp, workerScript); pForLoop.then(function(forLoopRes) { resolve("forLoopDone"); + workerScript.scriptRef.log("Exiting for loop"); }, function(e) { reject(e); }); diff --git a/src/Player.js b/src/Player.js index 0e77732ce..3dd01bd43 100644 --- a/src/Player.js +++ b/src/Player.js @@ -831,8 +831,8 @@ PlayerObject.prototype.startClass = function(costMult, expMult, className) { } this.workMoneyLossRate = cost; - this.workHackExpGainRate = hackExp; - this.workChaExpGainRate = chaExp; + this.workHackExpGainRate = hackExp * this.hacking_exp_mult; + this.workChaExpGainRate = chaExp * this.charisma_exp_mult; var cancelButton = document.getElementById("work-in-progress-cancel-button");