From 2e73efc6efbbaf8d1cc2754b82df696303c2f840 Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Thu, 27 Apr 2017 15:59:57 -0500 Subject: [PATCH] Playtesting - Fixes and rebalancing --- src/Constants.js | 4 ++-- src/Netscript/Evaluator.js | 2 ++ src/Player.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) 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");