Added debugging statements to try and figure out whats wrong when the time is calculated for hacks

This commit is contained in:
Daniel Xie
2016-10-24 16:36:23 -05:00
parent 0307b3334d
commit d268ea09f8
2 changed files with 4 additions and 0 deletions

View File

@@ -96,7 +96,10 @@ var Player = {
// hacking_skill
calculateHackingTime: function() {
var difficultyMult = Player.currentServer.requiredHackingSkill * Player.currentServer.difficulty;
console.log("difficultyMult: " + difficultyMult);
var skillFactor = difficultyMult / Player.hacking_skill;
console.log("skillFactor: " + skillFactor);
console.log("Player.hacking_speed_multiplier: " + Player.hacking_speed_multiplier);
return skillFactor * Player.hacking_speed_multiplier;
},

View File

@@ -168,6 +168,7 @@ var Engine = {
//Update progress bar
if (Engine._hackProgressBarCount * 2 < percent) {
Engine._hackProgressStr += '|';
Engine._ProgressBarCount += 1;
$('#hacking-progress-bar').html(Engine._hackProgressStr);
}