Skip to content

Commit

Permalink
唐乐林特殊优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zc-meng committed Oct 29, 2024
1 parent eb74fd7 commit 07cd962
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/kotlin/Game.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class Game(val id: Int, totalPlayerCount: Int, val actorRef: ActorRef) {
get() {
val cnt = players.count { it is HumanPlayer }
return when (cnt) {
1 -> Config.WaitSeconds * 2
1 -> {
val humanPlayers = players.filterIsInstance<HumanPlayer>()
if (humanPlayers[0].playerName == "唐乐林") Config.WaitSeconds * 200
else Config.WaitSeconds * 2
}
2 -> Config.WaitSeconds
else -> (Config.WaitSeconds * (1 - 0.05 * cnt)).toInt()
}
Expand Down

0 comments on commit 07cd962

Please sign in to comment.