@model List @{ Layout = null; var loc = SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex.Set; 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)) return "0_no-place/menu_div_no_place.png"; if (elo >= getDeviation(-0.25) && elo < getDeviation(0.25)) return "1_iron/menu_div_iron_sub03.png"; if (elo >= getDeviation(0.25) && elo < getDeviation(0.6875)) return "2_bronze/menu_div_bronze_sub03.png"; if (elo >= getDeviation(0.6875) && elo < getDeviation(1)) 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"; if (elo >= getDeviation(1.5) && elo < getDeviation(1.75)) return "6_semipro/menu_div_semipro_sub03.png"; if (elo >= getDeviation(1.75)) return "7_pro/menu_div_pro_sub03.png"; return "0_no-place/menu_div_no_place.png"; } } @foreach (var stat in Model) {
#@stat.Ranking
@if (stat.RatingChange > 0) {
@stat.RatingChange
} @if (stat.RatingChange < 0) {
@Math.Abs(stat.RatingChange)
} @Html.ActionLink(stat.Name, "ProfileAsync", "Client", new { id = stat.ClientId })
@stat.Performance @loc["PLUGINS_STATS_COMMANDS_PERFORMANCE"]
@stat.KDR @loc["PLUGINS_STATS_TEXT_KDR"] @stat.Kills @loc["PLUGINS_STATS_TEXT_KILLS"] @stat.Deaths @loc["PLUGINS_STATS_TEXT_DEATHS"]
@loc["WEBFRONT_PROFILE_PLAYER"] @stat.TimePlayed @loc["GLOBAL_TIME_HOURS"]
@loc["WEBFRONT_PROFILE_LSEEN"] @stat.LastSeen @loc["WEBFRONT_PENALTY_TEMPLATE_AGO"]
}