X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/21357ae2173926ec1eb908517ab7b1b3e9175ee5..e9fb4b60ebdea1a383b0963aa71d0a3ffc1e3822:/src/main/java/com/codingame/game/LeagueManager.java?ds=sidebyside diff --git a/src/main/java/com/codingame/game/LeagueManager.java b/src/main/java/com/codingame/game/LeagueManager.java index ed7d455..94a7f5f 100644 --- a/src/main/java/com/codingame/game/LeagueManager.java +++ b/src/main/java/com/codingame/game/LeagueManager.java @@ -18,6 +18,9 @@ class LeagueManager { @Inject LeagueManager(MultiplayerGameManager gameManager) { - cheatLevel = CheatLevel.FORBIDDEN; + int level = gameManager.getLeagueLevel(); + cheatLevel = level <= 1 ? CheatLevel.ALLOWED + : level <= 2 ? CheatLevel.TOLERATED + : CheatLevel.FORBIDDEN; } }