Add MedFes calculations for # of songs needed to play
This commit is contained in:
parent
53137ab8a2
commit
b5bfa2dc5a
2 changed files with 22 additions and 5 deletions
|
@ -362,6 +362,15 @@ function calculate_rank() {
|
||||||
var normal_count = Math.round(required_exp / 26);
|
var normal_count = Math.round(required_exp / 26);
|
||||||
var hard_count = Math.round(required_exp / 46);
|
var hard_count = Math.round(required_exp / 46);
|
||||||
var expert_count = Math.round(required_exp / 83);
|
var expert_count = Math.round(required_exp / 83);
|
||||||
|
var m3_easy_count = Math.round(required_exp / (12*3));
|
||||||
|
var m3_normal_count = Math.round(required_exp / (26*3));
|
||||||
|
var m3_hard_count = Math.round(required_exp / (46*3));
|
||||||
|
var m3_expert_count = Math.round(required_exp / (83*3));
|
||||||
|
// Increases the amount of EXP gained by 10%.
|
||||||
|
var m3b_easy_count = Math.round(required_exp / (12*1.1*3));
|
||||||
|
var m3b_normal_count = Math.round(required_exp / (26*1.1*3));
|
||||||
|
var m3b_hard_count = Math.round(required_exp / (46*1.1*3));
|
||||||
|
var m3b_expert_count = Math.round(required_exp / (83*1.1*3));
|
||||||
// calc LP and FP
|
// calc LP and FP
|
||||||
var LP = 25 + Math.floor(Math.min(desired_rank, 300) / 2) + Math.floor(Math.max(desired_rank - 300, 0) / 3);
|
var LP = 25 + Math.floor(Math.min(desired_rank, 300) / 2) + Math.floor(Math.max(desired_rank - 300, 0) / 3);
|
||||||
// calc friend slots
|
// calc friend slots
|
||||||
|
@ -372,6 +381,14 @@ function calculate_rank() {
|
||||||
$("#rank-result-songs-normal").text(normal_count);
|
$("#rank-result-songs-normal").text(normal_count);
|
||||||
$("#rank-result-songs-hard").text(hard_count);
|
$("#rank-result-songs-hard").text(hard_count);
|
||||||
$("#rank-result-songs-expert").text(expert_count);
|
$("#rank-result-songs-expert").text(expert_count);
|
||||||
|
$("#rank-result-songs-easy-mf").text(m3_easy_count);
|
||||||
|
$("#rank-result-songs-normal-mf").text(m3_normal_count);
|
||||||
|
$("#rank-result-songs-hard-mf").text(m3_hard_count);
|
||||||
|
$("#rank-result-songs-expert-mf").text(m3_expert_count);
|
||||||
|
$("#rank-result-songs-easy-mfb").text(m3b_easy_count);
|
||||||
|
$("#rank-result-songs-normal-mfb").text(m3b_normal_count);
|
||||||
|
$("#rank-result-songs-hard-mfb").text(m3b_hard_count);
|
||||||
|
$("#rank-result-songs-expert-mfb").text(m3b_expert_count);
|
||||||
// rank-results-lp">-</span> LP and <span id="rank-results-fp
|
// rank-results-lp">-</span> LP and <span id="rank-results-fp
|
||||||
$("#rank-results-lp").text(LP);
|
$("#rank-results-lp").text(LP);
|
||||||
$("#rank-results-fp").text(friend_slots);
|
$("#rank-results-fp").text(friend_slots);
|
||||||
|
|
|
@ -75,11 +75,11 @@
|
||||||
<h1>Results</h1>EXP required: <span id="rank-result-exp">-</span><br>
|
<h1>Results</h1>EXP required: <span id="rank-result-exp">-</span><br>
|
||||||
<br>
|
<br>
|
||||||
You will need to play the following number of songs in order to get this amount of EXP:<br>
|
You will need to play the following number of songs in order to get this amount of EXP:<br>
|
||||||
<br>
|
<br>(Single / 3xMedFes / 3xMedFes w/EXP boost)<br /><br />
|
||||||
EASY: <span id="rank-result-songs-easy">-</span><br>
|
EASY: <span id="rank-result-songs-easy">-</span> / <span id="rank-result-songs-easy-mf">-</span> / <span id="rank-result-songs-easy-mfb">-</span><br>
|
||||||
NORMAL: <span id="rank-result-songs-normal">-</span><br>
|
NORMAL: <span id="rank-result-songs-normal">-</span> / <span id="rank-result-songs-normal-mf">-</span> / <span id="rank-result-songs-normal-mfb">-</span><br>
|
||||||
HARD: <span id="rank-result-songs-hard">-</span><br>
|
HARD: <span id="rank-result-songs-hard">-</span> / <span id="rank-result-songs-hard-mf">-</span> / <span id="rank-result-songs-hard-mfb">-</span><br>
|
||||||
EXPERT: <span id="rank-result-songs-expert">-</span><br>
|
EXPERT: <span id="rank-result-songs-expert">-</span> / <span id="rank-result-songs-expert-mf">-</span> / <span id="rank-result-songs-expert-mfb">-</span><br>
|
||||||
<br>
|
<br>
|
||||||
At this rank you will have <span id="rank-results-lp">-</span> LP and <span id="rank-results-fp">-</span> friend slots.<br>
|
At this rank you will have <span id="rank-results-lp">-</span> LP and <span id="rank-results-fp">-</span> friend slots.<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue