Estimated time to next level
Saturate opened this issue · 1 comments
Saturate commented
Hey team!
I created the following, super ugly code:
var missingExp = gPlayerInfo.next_level_score - gPlayerInfo.score;
var nextScoreAmount = max_scores[INJECT_get_difficulty(target_zone)];
var roundTime = round_length + update_length;
var secondsLeft = missingExp / nextScoreAmount * roundTime;
var date = new Date(null);
date.setSeconds(secondsLeft);
var result = date.toISOString().substr(11, 8);
console.log('time left', result)
It get's the estimated time to the next level. Am I totally mistaken about this? If not, I'll create a feature for it in the GUI.