allow prompt string to have an empty/default value

upgrade some project dependencies
don't try to run events on parsers
update top players rank distribution
This commit is contained in:
RaidMax
2020-02-17 10:05:31 -06:00
parent 2e5ffe91fc
commit 02a784ad09
7 changed files with 30 additions and 16 deletions

View File

@ -5,21 +5,21 @@
double getDeviation(double deviations) => Math.Pow(Math.E, 5.0813 + (deviations * 0.8694));
string rankIcon(double elo)
{
if (elo >= getDeviation(-1) && elo < getDeviation(-0.25))
if (elo >= getDeviation(-0.75) && elo < getDeviation(1.25))
return "0_no-place/menu_div_no_place.png";
if (elo >= getDeviation(-0.25) && elo < getDeviation(0.25))
if (elo >= getDeviation(0.125) && elo < getDeviation(0.625))
return "1_iron/menu_div_iron_sub03.png";
if (elo >= getDeviation(0.25) && elo < getDeviation(0.6875))
if (elo >= getDeviation(0.625) && elo < getDeviation(1.0))
return "2_bronze/menu_div_bronze_sub03.png";
if (elo >= getDeviation(0.6875) && elo < getDeviation(1))
if (elo >= getDeviation(1.0) && elo < getDeviation(1.25))
return "3_silver/menu_div_silver_sub03.png";
if (elo >= getDeviation(1) && elo < getDeviation(1.25))
return "4_gold/menu_div_gold_sub03.png";
if (elo >= getDeviation(1.25) && elo < getDeviation(1.5))
return "5_platinum/menu_div_platinum_sub03.png";
return "4_gold/menu_div_gold_sub03.png";
if (elo >= getDeviation(1.5) && elo < getDeviation(1.75))
return "5_platinum/menu_div_platinum_sub03.png";
if (elo >= getDeviation(1.75) && elo < getDeviation(2.0))
return "6_semipro/menu_div_semipro_sub03.png";
if (elo >= getDeviation(1.75))
if (elo >= getDeviation(2.0))
return "7_pro/menu_div_pro_sub03.png";
return "0_no-place/menu_div_no_place.png";