Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Commit

Permalink
Update Exp counter during boss fights
Browse files Browse the repository at this point in the history
This won't rollover levels or update the est time, but meh.
  • Loading branch information
ensingm2 committed Jul 3, 2018
1 parent ded60c1 commit b6651ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions idle.js
Expand Up @@ -387,6 +387,15 @@ var INJECT_report_boss_damage = function() {
gui.updateTask("You died, ending boss fight. Boss HP left: " + results.response.boss_status.boss_hp + ". EXP earned: " + player.xp_earned);
end_game();
}

// Update GUI
gui.updateLevel(player.new_level);
var total_exp = parseInt(player.score_on_join) + player.xp_earned;
if (gPlayerInfo.level == 25)
gui.updateExp(total_exp + " / Infinite");
else
gui.updateExp(total_exp + " / " + player.next_level_score);
gui.updateEstimatedTime(calculateTimeToNextLevel());
}
});
gui.progressbar.SetValue((results.response.boss_status.boss_max_hp - results.response.boss_status.boss_hp) / results.response.boss_status.boss_max_hp);
Expand Down

0 comments on commit b6651ec

Please sign in to comment.