Rebalancing to job wages, hack time, and create program level requirements

This commit is contained in:
Daniel Xie
2017-05-02 12:06:46 -05:00
parent 6edd7f1a49
commit 36a261bd2e
3 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ function evaluate(exp, workerScript) {
return;
}
workerScript.scriptRef.log("Attempting to hack " + ip + " in " + hackingTime + " seconds");
workerScript.scriptRef.log("Attempting to hack " + ip + " in " + hackingTime.toFixed(3) + " seconds");
var p = new Promise(function(resolve, reject) {
if (env.stopFlag) {reject(workerScript);}
@@ -603,7 +603,7 @@ function scriptCalculateHackingChance(server) {
//The same as Player's calculateHackingTime() function but takes in the server as an argument
function scriptCalculateHackingTime(server) {
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
var skillFactor = (difficultyMult + 1000) / (Player.hacking_skill + 50);
var skillFactor = (2 * difficultyMult + 1000) / (Player.hacking_skill + 50);
var hackingTime = skillFactor * Player.hacking_speed_mult; //This is in seconds
return hackingTime;
}