From b5bfa2dc5a32ef2d876533e8775946789e8dfc89 Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Tue, 8 Dec 2015 21:35:23 -0800 Subject: [PATCH] Add MedFes calculations for # of songs needed to play --- web_app/js/sif_tools.js | 17 +++++++++++++++++ web_app/sif_tools.html | 10 +++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/web_app/js/sif_tools.js b/web_app/js/sif_tools.js index 88d9961..5b22f41 100644 --- a/web_app/js/sif_tools.js +++ b/web_app/js/sif_tools.js @@ -362,6 +362,15 @@ function calculate_rank() { var normal_count = Math.round(required_exp / 26); var hard_count = Math.round(required_exp / 46); 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 var LP = 25 + Math.floor(Math.min(desired_rank, 300) / 2) + Math.floor(Math.max(desired_rank - 300, 0) / 3); // calc friend slots @@ -372,6 +381,14 @@ function calculate_rank() { $("#rank-result-songs-normal").text(normal_count); $("#rank-result-songs-hard").text(hard_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">- LP and SIF Tools

Results

EXP required:   -

You will need to play the following number of songs in order to get this amount of EXP:
-
- EASY:   -
- NORMAL:   -
- HARD:   -
- EXPERT:   -
+
(Single / 3xMedFes / 3xMedFes w/EXP boost)

+ EASY:   - / - / -
+ NORMAL:   - / - / -
+ HARD:   - / - / -
+ EXPERT:   - / - / -

At this rank you will have - LP and - friend slots.