Player hacking speed affects time to execute grow()

This commit is contained in:
Daniel Xie 2017-05-30 10:10:15 -05:00
parent f3fde01758
commit 501abfeae0

@ -1274,6 +1274,6 @@ function scriptCalculatePercentMoneyHacked(server) {
function scriptCalculateGrowTime(server) { function scriptCalculateGrowTime(server) {
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty; var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50); var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50);
var growTime = skillFactor * 16; //This is in seconds var growTime = skillFactor * Player.hacking_speed_mult * 16; //This is in seconds
return growTime * 1000; return growTime * 1000;
} }