Added EXP gains to weaken() and grow() after refactoring, and rebalanced hacking mechanics:

This commit is contained in:
Daniel Xie
2017-06-05 03:08:04 -05:00
parent 71999ea2eb
commit 9adce1dd2f
4 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ PlayerObject.prototype.calculateHackingTime = function() {
PlayerObject.prototype.calculatePercentMoneyHacked = function() {
var difficultyMult = (100 - this.getCurrentServer().hackDifficulty) / 100;
var skillMult = (this.hacking_skill - (this.getCurrentServer().requiredHackingSkill - 1)) / this.hacking_skill;
var percentMoneyHacked = difficultyMult * skillMult * this.hacking_money_mult / 150;
var percentMoneyHacked = difficultyMult * skillMult * this.hacking_money_mult / 200;
console.log("Percent money hacked calculated to be: " + percentMoneyHacked);
if (percentMoneyHacked < 0) {return 0;}
if (percentMoneyHacked > 1) {return 1;}