From c9a1528dfe748d5cfacd666ee6349262f528972a Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Wed, 2 Apr 2025 10:21:03 +0200 Subject: [PATCH] Update UserElo for better distribution --- .../SQL/src/de/steamwar/sql/UserElo.java | 58 ++++++++----------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/CommonCore/SQL/src/de/steamwar/sql/UserElo.java b/CommonCore/SQL/src/de/steamwar/sql/UserElo.java index 235fc302..055b0669 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/UserElo.java +++ b/CommonCore/SQL/src/de/steamwar/sql/UserElo.java @@ -112,27 +112,23 @@ public class UserElo { public static String getEmblemProgression(String gameMode, int userId) { switch (getProgression(userId, gameMode)) { case -1: - return "§f/ §8∨ ∧ ∨ ∧ ∨ ∧ ❂ III II I"; + return "§f/ §8❱❱❱❱ ❂"; case 0: - return "§8/ §6∨ §8∧ ∨ ∧ ∨ ∧ ❂ III II I"; + return "§8/ §e❱§8❱❱❱ ❂"; case 1: - return "§8/ ∨ §6∧ §8∨ ∧ ∨ ∧ ❂ III II I"; + return "§8/ §e❱❱§8❱❱ ❂"; case 2: - return "§8/ ∨ ∧ §7∨ §8∧ ∨ ∧ ❂ III II I"; + return "§8/ §e❱❱❱§8❱ ❂"; case 3: - return "§8/ ∨ ∧ ∨ §7∧ §8∨ ∧ ❂ III II I"; + return "§8/ §e❱❱❱❱§8 ❂"; case 4: - return "§8/ ∨ ∧ ∨ ∧ §e∨ §8∧ ❂ III II I"; + return "§8/ §8❱❱❱❱ §5❂"; case 5: - return "§8/ ∨ ∧ ∨ ∧ ∨ §e∧ §8❂ III II I"; + return "§8/ §8❱❱❱❱ §5III"; case 6: - return "§8/ ∨ ∧ ∨ ∧ ∨ ∧ §5❂ §8III II I"; + return "§8/ §8❱❱❱❱ §5II"; case 7: - return "§8/ ∨ ∧ ∨ ∧ ∨ ∧ ❂ §5III §8II I"; - case 8: - return "§8/ ∨ ∧ ∨ ∧ ∨ ∧ ❂ III §5II §8I"; - case 9: - return "§8/ ∨ ∧ ∨ ∧ ∨ ∧ ❂ III II §5I"; + return "§8/ §8❱❱❱❱ §5I"; default: throw new SecurityException("Progression is not in range"); } @@ -142,19 +138,17 @@ public class UserElo { int elo = getElo(userId, gameMode).orElse(-1); if (elo < 0) return -1; - if (elo <= 100) return 0; - if (elo <= 200) return 1; - if (elo <= 400) return 2; - if (elo <= 600) return 3; - if (elo <= 900) return 4; - if (elo <= 1200) return 5; + if (elo < 150) return 0; + if (elo < 350) return 1; + if (elo < 600) return 2; + if (elo < 900) return 3; int placement = getPlacement(elo, gameMode); - if (placement == 1) return 9; - if (placement == 2) return 8; - if (placement == 3) return 7; + if (placement == 1) return 7; + if (placement == 2) return 6; + if (placement == 3) return 5; - return 6; + return 4; } public static String toEmblem(int progression) { @@ -162,24 +156,20 @@ public class UserElo { case -1: return ""; case 0: - return "§6∨ "; + return "§e❱ "; case 1: - return "§6∧ "; + return "§e❱❱ "; case 2: - return "§7∨ "; + return "§e❱❱❱ "; case 3: - return "§7∧ "; + return "§e❱❱❱❱ "; case 4: - return "§e∨ "; - case 5: - return "§e∧ "; - case 6: return "§5❂ "; - case 7: + case 5: return "§5III "; - case 8: + case 6: return "§5II "; - case 9: + case 7: return "§5I "; default: throw new SecurityException("Progression out of range");