Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Leaguify cheating
[troll.git]
/
src
/
main
/
java
/
com
/
codingame
/
game
/
LeagueManager.java
diff --git
a/src/main/java/com/codingame/game/LeagueManager.java
b/src/main/java/com/codingame/game/LeagueManager.java
index
ed7d455
..
94a7f5f
100644
(file)
--- 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<AbstractMultiplayerPlayer> gameManager)
{
@Inject
LeagueManager(MultiplayerGameManager<AbstractMultiplayerPlayer> gameManager)
{
- cheatLevel = CheatLevel.FORBIDDEN;
+ int level = gameManager.getLeagueLevel();
+ cheatLevel = level <= 1 ? CheatLevel.ALLOWED
+ : level <= 2 ? CheatLevel.TOLERATED
+ : CheatLevel.FORBIDDEN;
}
}
}
}