Added grow() command - it is untested and does not worki n offline yet. Some small rebalancing and UI changes

This commit is contained in:
Daniel Xie
2017-05-02 11:28:54 -05:00
parent 097807282d
commit 6edd7f1a49
10 changed files with 132 additions and 28 deletions
+4 -4
View File
@@ -191,12 +191,12 @@ PlayerObject.prototype.calculateHackingChance = function() {
//Calculate the time it takes to hack a server in seconds. Returns the time
//The formula is:
// (requiredLevel * difficulty)
// ------------------------------- * hacking_speed_multiplier
// hacking_skill
// (requiredLevel * difficulty + 500)
// ----------------------------------- * hacking_speed_multiplier
// hacking_skill + 100
PlayerObject.prototype.calculateHackingTime = function() {
var difficultyMult = this.getCurrentServer().requiredHackingSkill * this.getCurrentServer().hackDifficulty;
var skillFactor = (difficultyMult + 500) / (this.hacking_skill + 100);
var skillFactor = (2 * difficultyMult + 300) / (this.hacking_skill + 100);
return skillFactor * this.hacking_speed_mult;
}